Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class UUICardBlockTypeElement extends UUICardElement {
return html`
${this.#renderMedia()}
${this.href ? this.#renderLink() : this.#renderButton()}
<div id="name-wrapper" title="${this.name}"></div>
<!-- Select border must be right after #open-part -->
<div id="select-border"></div>
${this.selectable ? this.renderCheckbox() : nothing}
Expand Down Expand Up @@ -107,6 +108,13 @@ export class UUICardBlockTypeElement extends UUICardElement {
background-color: var(--uui-color-surface-alt);
}

#name-wrapper {
position: absolute;
inset: 0;
pointer-events: auto;
z-index: 0;
}

slot[name='tag'] {
position: absolute;
bottom: var(--uui-size-4);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export class UUICardContentNodeElement extends UUICardElement {
public render() {
return html`
${this.href ? this.#renderLink() : this.#renderButton()}
<div id="name-wrapper" title="${this.name}"></div>
<!-- Select border must be right after #open-part -->
<div id="select-border"></div>
${this.selectable ? this.renderCheckbox() : nothing}
Expand All @@ -133,6 +134,13 @@ export class UUICardContentNodeElement extends UUICardElement {
justify-content: space-between;
}

#name-wrapper {
position: absolute;
inset: 0;
pointer-events: auto;
z-index: 0;
}

slot[name='tag'] {
position: absolute;
bottom: var(--uui-size-4);
Expand Down
8 changes: 8 additions & 0 deletions packages/uui-card-media/lib/uui-card-media.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class UUICardMediaElement extends UUICardElement {
public render() {
return html` ${this.renderMedia()}
<slot @slotchange=${this.queryPreviews}></slot>
<div id="name-wrapper" title="${this.name}"></div>
${this.href ? this.#renderLink() : this.#renderButton()}
<!-- Select border must be right after .open-part -->
<div id="select-border"></div>
Expand Down Expand Up @@ -198,6 +199,13 @@ export class UUICardMediaElement extends UUICardElement {
overflow-wrap: anywhere;
}

#name-wrapper {
position: absolute;
inset: 0;
pointer-events: auto;
z-index: 0;
}

:host([image]:not([image=''])) #open-part {
transition: opacity 0.5s 0.5s;
opacity: 0;
Expand Down
8 changes: 8 additions & 0 deletions packages/uui-card-user/lib/uui-card-user.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export class UUICardUserElement extends UUICardElement {
public render() {
return html`
${this.href ? this.#renderLink() : this.#renderButton()}
<div id="name-wrapper" title="${this.name}"></div>
<!-- Select border must be right after #open-part -->
<div id="select-border"></div>
${this.selectable ? this.renderCheckbox() : nothing}
Expand All @@ -104,6 +105,13 @@ export class UUICardUserElement extends UUICardElement {
min-width: 250px;
}

#name-wrapper {
position: absolute;
inset: 0;
pointer-events: auto;
z-index: 0;
}

slot:not([name])::slotted(*) {
font-size: var(--uui-type-small-size);
line-height: var(--uui-size-6);
Expand Down
Loading