Skip to content

Commit

Permalink
feat: menu items hide actions (#796)
Browse files Browse the repository at this point in the history
* add missing import

* hide action bar when not focused or hovered
  • Loading branch information
JesmoDev authored May 23, 2024
1 parent e159c43 commit 9f07ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/uui-menu-item/lib/uui-menu-item.element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -497,13 +497,14 @@ export class UUIMenuItemElement extends SelectOnlyMixin(
#actions-container {
opacity: 0;
transition: opacity 120ms;
width: 0;
grid-column-start: 3;
}
:host(:not([disabled])) #menu-item:hover #actions-container,
:host(:not([disabled])) #menu-item:focus #actions-container,
:host(:not([disabled])) #menu-item:focus-within #actions-container {
opacity: 1;
width: auto;
}
#loader {
Expand Down
1 change: 1 addition & 0 deletions packages/uui-menu-item/lib/uui-menu-item.story.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { UUIMenuItemElement } from './uui-menu-item.element';
import { UUIMenuItemEvent } from './UUIMenuItemEvent';
import readme from '../README.md?raw';
import '@umbraco-ui/uui-symbol-expand/lib';
import '@umbraco-ui/uui-symbol-more/lib';

export default {
title: 'Buttons/Menu Item',
Expand Down

0 comments on commit 9f07ae6

Please sign in to comment.