Skip to content

Commit ff83793

Browse files
committed
"uui-card-content-node": adds renderCheckbox()
1 parent 8b3e0de commit ff83793

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export class UUICardContentNodeElement extends UUICardElement {
116116
${this.href ? this.#renderLink() : this.#renderButton()}
117117
<!-- Select border must be right after #open-part -->
118118
<div id="select-border"></div>
119-
119+
${this.selectable ? this.renderCheckbox() : nothing}
120120
<slot name="tag"></slot>
121121
<slot name="actions"></slot>
122122
`;
@@ -226,6 +226,11 @@ export class UUICardContentNodeElement extends UUICardElement {
226226
:host(:not([disabled])) #open-part:hover #default {
227227
color: var(--uui-color-interactive-emphasis);
228228
}
229+
230+
#select-checkbox {
231+
top: var(--uui-size-5);
232+
left: var(--uui-size-6);
233+
}
229234
`,
230235
];
231236
}

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,10 @@ export const CustomIcon: Story = {
7676
'icon slot': html`<uui-icon slot="icon" name="wand"></uui-icon>`,
7777
},
7878
};
79+
80+
export const Selectable: Story = {
81+
args: {
82+
selectable: true,
83+
selectOnly: true,
84+
},
85+
};

0 commit comments

Comments
 (0)