Skip to content

Commit d4bda19

Browse files
committed
"uui-card-media": adds renderCheckbox()
1 parent 7e23cf7 commit d4bda19

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class UUICardMediaElement extends UUICardElement {
118118
${this.href ? this.#renderLink() : this.#renderButton()}
119119
<!-- Select border must be right after .open-part -->
120120
<div id="select-border"></div>
121-
121+
${this.selectable ? this.renderCheckbox() : nothing}
122122
<slot name="tag"></slot>
123123
<slot name="actions"></slot>`;
124124
}
@@ -208,7 +208,6 @@ export class UUICardMediaElement extends UUICardElement {
208208
#content {
209209
position: relative;
210210
display: flex;
211-
width: 100%;
212211
flex-direction: column;
213212
font-family: inherit;
214213
box-sizing: border-box;

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,10 @@ export const Image: Story = {
9292
chromatic: { disableSnapshot: true },
9393
},
9494
};
95+
96+
export const Selectable: Story = {
97+
args: {
98+
selectable: true,
99+
selectOnly: true,
100+
},
101+
};

0 commit comments

Comments
 (0)