Skip to content

Improved Menu component and Button states

Pre-release
Pre-release
Compare
Choose a tag to compare
@jeroenransijn jeroenransijn released this 17 Jul 20:40
· 656 commits to master since this release

Menu

  • Add better focus management to the Menu component
    • Support Home and End key to jump to first and last component
    • Support custom [role="menuitem"] and [role="menuitemradio"] elements within the Menu.

Popover

  • Pressing down arrow on trigger brings focus inside of Popover content.
  • Disable bringing focus inside by default, which is more inline with how a popover or menu should work

Button

  • Add new focusAndActive state for better focus states
  • Bring back cursor: not-allowed; when buttons are disabled