Skip to content

Commit 8b3e0de

Browse files
committed
"uui-card-block-type": adds renderCheckbox()
1 parent d4bda19 commit 8b3e0de

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export class UUICardBlockTypeElement extends UUICardElement {
4949
${this.href ? this.#renderLink() : this.#renderButton()}
5050
<!-- Select border must be right after #open-part -->
5151
<div id="select-border"></div>
52-
52+
${this.selectable ? this.renderCheckbox() : nothing}
5353
<slot name="tag"></slot>
5454
<slot name="actions"></slot>
5555
`;

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,13 @@ export const Background: Story = {
7070

7171
export const Image: Story = {
7272
args: {
73-
slot: html`<img
74-
src="https://umbraco.com/media/v5gf3w2a/umbraco-toolkit-wide.svg"
75-
alt="" />`,
73+
slot: html`<img src="https://placedog.net/1447/?random" alt="" />`,
74+
},
75+
};
76+
77+
export const Selectable: Story = {
78+
args: {
79+
selectable: true,
80+
selectOnly: true,
7681
},
7782
};

0 commit comments

Comments
 (0)