Improved Menu component and Button states
Pre-release
Pre-release
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
andEnd
key to jump to first and last component - Support custom
[role="menuitem"]
and[role="menuitemradio"]
elements within the Menu.
- Support
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