Skip to content
Merged
Changes from 1 commit
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
16 changes: 13 additions & 3 deletions packages/uui-menu-item/lib/uui-menu-item.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
: this._renderLabelAsButton()}

<slot id="actions-container" name="actions"></slot>
${this.loading
? html`<uui-loader-bar id="loader"></uui-loader-bar>`
: ''}
<uui-loader-bar
id="loader"
class=${this.loading ? 'visible' : ''}></uui-loader-bar>
</div>
${this.showChildren ? html`<slot></slot>` : ''}
`;
Expand Down Expand Up @@ -617,6 +617,16 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
--uui-button-height: calc(var(--uui-size-base-unit) * 4);
margin-right: var(--uui-size-base-unit);
}

#loader {
opacity: 0;
transition: opacity 120ms ease-in 60ms;
pointer-events: none;
}

#loader.visible {
opacity: 1;
}
`,
];
}
Expand Down
Loading