Skip to content

Commit ba493b1

Browse files
fix: make fallback select border (#1048)
* Fix: Remove extra margin on ref-node (#1037) * remove extra margin * Update uui-ref-node.element.ts * fallback render select border * make default render of uui-card include the select border --------- Co-authored-by: Mads Rasmussen <[email protected]>
1 parent b7efeca commit ba493b1

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

packages/uui-card/lib/uui-card.element.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ export class UUICardElement extends SelectOnlyMixin(
8484
}
8585

8686
protected render() {
87-
return html`<slot></slot>`;
87+
return html`<slot id="open-part"></slot>
88+
<div id="select-border"></div>`;
8889
}
8990

9091
static styles = [

packages/uui-card/lib/uui-card.story.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const meta: Meta = {
99
component: 'uui-card',
1010
title: 'Displays/Cards/Card',
1111
args: {
12-
slot: 'This is an example of a simple card',
12+
slot: '<div style="margin: var(--uui-size-space-4)">This is an example of a simple card <a href="#link">with a link</a>.</div>',
1313
},
1414
render: args =>
1515
html`<uui-card ${spread(args)}>${renderSlots(args)}</uui-card>`,

packages/uui/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@
3838
"path": "../uui-button"
3939
},
4040
{
41-
"path": "../uui-button-group"
41+
"path": "../uui-button-copy-text"
4242
},
4343
{
44-
"path": "../uui-button-inline-create"
44+
"path": "../uui-button-group"
4545
},
4646
{
47-
"path": "../uui-button-copy-text"
47+
"path": "../uui-button-inline-create"
4848
},
4949
{
5050
"path": "../uui-card"

0 commit comments

Comments
 (0)