This menu component is used to trigger an action based on the user’s selection.
Contributors
Gabriel Weinberg Ange Romanska (Deactivated) Adam Butterworth (Deactivated)
https://openedx.atlassian.net/browse/UXTL-3
https://openedx.atlassian.net/browse/PAR-456
The default menu component is triggered on the click of a button or standalone link, and expands from the center. The menu uses a modified tertiary button (left-aligned text and minimum width) and all of its states, with a white background, and level 2 elevation. The menu also remembers the user’s selection and displays it as the label for the button trigger.
NOTE: Any button or standalone link style can be used as a trigger, not just the secondary button in the example below.
TNL Use case example - LMS
| |
| |
| |
|
Expand top-down |
https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=2348%3A12365
|
Expand bottom-up |
https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=2348%3A13535
|
Minimum and maximum width and height Long text automatically truncates with an ellipses. Width should only become narrower if the viewport becomes narrower than the menu. |
https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=2348%3A11916
|
Scrollable |
https://www.figma.com/file/dJr5ixCRKlXiuA4BsKxAk3/Design-System-Workspace?node-id=2348%3A12182
|
Focus Management Expectations | When the menu is activated, it pulls focus into the list, to the current selection in the list. When activated, the screen reader should tell the user what the menu does (ie. “Select a course section.”). When focused on a the selected menu item within the list, screen reader should say “Current selection [selected item] |
Semantics |