Add a Menu Button component.
Review Request #13644 — Created March 18, 2024 and submitted
The Menu Button is a button that displays a drop-down menu on hover,
click, or keyboard interaction. This can be used to select an action or
change settings for a piece of UI.Menu Buttons can have a distinct Action Button, which will invoke an
action but will not show the drop-down menu. In this situation, the menu
is generally used for configuration or alternate (but related) actions.
Tested the component thoroughly in Storybook.
Unit tests pass.
- Change Summary:
-
- Added properties for customizing the menu button's label, icon, busy state, disabled state, and menu items at runtime.
- Added access to the underlying action and dropdown button components.
- Removed a legacy file from the change.
- Commits:
-
Summary ID c9b259e868c62dc0650a944e39ae3e3a0225b1d5 744744e9eea07d747dd3ceeaf473dc66eb606ca4 - Diff:
-
Revision 2 (+3738 -4)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.