Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat]: Allow using popover menu style on mobile #4820

Open
1 task done
adixon-adobe opened this issue Oct 14, 2024 · 1 comment
Open
1 task done

[Feat]: Allow using popover menu style on mobile #4820

adixon-adobe opened this issue Oct 14, 2024 · 1 comment

Comments

@adixon-adobe
Copy link
Collaborator

Code of conduct

  • 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.

@adixon-adobe adixon-adobe added enhancement New feature or request Component: Action Menu triage An issue needing triage needs jira ticket labels Oct 14, 2024
@najikahalsema
Copy link
Collaborator

According to Spectrum guidelines, this behaviour is permitted. We just need to think about the API name, so a small RFC would be good here. That way we can abstract that pattern to other components if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants