spectrum-web-components
spectrum-web-components copied to clipboard
[Feat]: Allow using popover menu style on mobile
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
sp-action-menu
Description of the requested feature
We've been using the action menu component in a header on our site, and sometimes it only has a few items. We've found the mobile tray that shows up at the bottom to be confusing and often too far away from the button you clicked.
It'd be really nice to have an option to disable the tray -- I'd expect the normal popover menu to work well on mobile anyways.
Mockups or screenshots
No response
Implementation notes or ideas
Just a simple disable-mobile-tray
attribute or something similar would do the trick. The code looks like it'd be pretty simple to modify, but may also affect other components.