Add a MenuLabel component, for label/menubar-like drop-down menu handles.
Review Request #13884 — Created May 21, 2024 and submitted
MenuLabel
provides a simple label with an optional icon and a
drop-down handle. Hovering over it will display a drop-down menu.This works very much like
MenuButton
, but without all the button state
options or visual appearance of a button. It's intended for simple
drop-down controls in a toolbar and for usage in menubars.
Unit tests passed.
Tested in Storybook, and in usage within Review Board.
- Change Summary:
-
Switch to using
<span>
as the element type instead of<a>
, to avoid over-aggressive styles leaking into the component. - Commits:
-
Summary ID 75f7e62f8210e944676fe513c7566684686d93ff ef92a64a765d0da78d4deddb65f818d5d4391f02 - Diff:
-
Revision 2 (+2698)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.