base-ui
base-ui copied to clipboard
[core] Refactor popup component style hooks to `data-popup-open`, `data-open`
- [x] I have followed (at least) the PR section of the contributing guide.
Closes https://github.com/mui/base-ui/issues/717
Style hooks refer to themselves or closely related components:
-
Triggerreceivesdata-popup-open -
Backdrop,Popup,Positionerand child components receivedata-open - Menu
data-radioitem->data-radio-item-{checked,unchecked} - Menu
data-checkboxitem->data-checkbox-item-{checked,unchecked} - Components that don't need to read open remove the state
-
React.useMemothe ownerState for missing components - Make
data-entering/data-exitingconsistent
Netlify deploy preview
https://deploy-preview-731--base-ui.netlify.app/
Generated by :no_entry_sign: dangerJS against 7acdd950b805f1bd11dc2dc190631f622ce68b32