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.
-
-
src/ink/less/components/menu-button.less (Diff revision 1) Missing a docstring for the file. Also just wondering what this file is for, it's not a component, schema or theme and I notice other components don't have a file like this.
-
src/ink/less/themes/default/components/menu-button.theme.less (Diff revision 1) Is this supposed to be this empty?
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: |
|
|||||||
---|---|---|---|---|---|---|---|---|
Diff: |
Revision 2 (+3738 -4) |