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

[Menu, Popover, Select] Add data-pressed to MenuTrigger, PopoverTrigger and SelectTrigger #826

Merged
merged 8 commits into from
Nov 19, 2024

Conversation

michaldudak
Copy link
Member

Added the data-pressed attribute to Menu's, Popover's and Select's Triggers.
Menu and Select get the attribute unconditionally when open, while Popover checks if it was open by clicking (the attribute won't be present when opened by hover).

Closes #716

@michaldudak michaldudak added component: select This is the name of the generic UI component, not the React module! component: menu This is the name of the generic UI component, not the React module! component: popover The React component. labels Nov 15, 2024
@mui-bot
Copy link

mui-bot commented Nov 15, 2024

Netlify deploy preview

https://deploy-preview-826--base-ui.netlify.app/

Generated by 🚫 dangerJS against 74e08b7

@michaldudak michaldudak merged commit c39d873 into mui:master Nov 19, 2024
22 checks passed
@michaldudak michaldudak deleted the data-pressed branch November 19, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: menu This is the name of the generic UI component, not the React module! component: popover The React component. component: select This is the name of the generic UI component, not the React module!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add [data-pressed] attr to Menu + Popover triggers
3 participants