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

[core] Refactor popup component style hooks to data-popup-open, data-open #731

Merged
merged 8 commits into from
Oct 15, 2024

Conversation

atomiks
Copy link
Contributor

@atomiks atomiks commented Oct 10, 2024

Closes #717

Style hooks refer to themselves or closely related components:

  • Trigger receives data-popup-open
  • Backdrop, Popup, Positioner and child components receive data-open
  • Menu data-radioitem -> data-{checked,unchecked}
  • Menu data-checkboxitem -> data-{checked,unchecked}
  • Components that don't need to read open remove the state
  • React.useMemo the ownerState for missing components
  • Make data-entering/data-exiting consistent

@atomiks atomiks added the core Infrastructure work going on behind the scenes label Oct 10, 2024
@atomiks atomiks changed the title [core] Refactor to data-popup-open and data-open [core] Refactor popup component style hooks to data-popup-open, data-open Oct 10, 2024
@mui-bot
Copy link

mui-bot commented Oct 10, 2024

Netlify deploy preview

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

Generated by 🚫 dangerJS against 7acdd95

@atomiks atomiks merged commit 6d7156a into mui:master Oct 15, 2024
18 checks passed
atomiks added a commit to atomiks/base-ui that referenced this pull request Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Collapse data-state attribute into multiple attrs
3 participants