You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Menu items that have sub-menus cannot be visually identified from items that trigger an action immediately.
In this example, Share and Move are menus
The original inspiration for Menu Bar component has been the OS menubars which typically don't distinguish between menus and actions. In reality Vaadin Menu Bar is often used as button container due to the overflowing functionality.
Describe the solution you'd like
Addition 1: has-menu attribute to help styling
Addition 2: menu-open attribute to help styling state when dropdown menu is open
Addition 3: Menu Bar theme variant that automatically populates the vaadin-menu-bar-button suffix slot with dropdown chevron.
Describe alternatives you've considered
This workaround will add icon based on presense of aria-haspopup attribute.
In order to visually balance the menu-bar-button's contents with the dropdown indicator, we need to tweak margins and indicator positioning a little bit. Here's the solution I ended up with:
Describe your motivation
Menu items that have sub-menus cannot be visually identified from items that trigger an action immediately.
In this example, Share and Move are menus
The original inspiration for Menu Bar component has been the OS menubars which typically don't distinguish between menus and actions. In reality Vaadin Menu Bar is often used as button container due to the overflowing functionality.
Describe the solution you'd like
Addition 1:
has-menu
attribute to help stylingAddition 2:
menu-open
attribute to help styling state when dropdown menu is openAddition 3: Menu Bar theme variant that automatically populates the
vaadin-menu-bar-button
suffix slot with dropdown chevron.Describe alternatives you've considered
This workaround will add icon based on presense of
aria-haspopup
attribute.Additional context
No response
The text was updated successfully, but these errors were encountered: