-
-
Notifications
You must be signed in to change notification settings - Fork 32.7k
Closed
Labels
package: @mui/baseSpecific to @mui/base (legacy).Specific to @mui/base (legacy).type: bugIt doesn't behave as expected.It doesn't behave as expected.
Description
Current behavior 😯
As I've been documenting the component slots and their classes in the MUI Base docs (#33156), I've noticed that the format for class names is inconsistent across the components. Variations on the theme include:
MuiOptionUnstyled-root
https://mui.com/base/react-select/#anatomyBaseBadge-root
https://mui.com/base/react-badge/#anatomyMuiSwitch-root
https://mui.com/base/react-switch/#anatomy
Expected behavior 🤔
I would expect these names to all have the same format.
Personally, I think it should be something like MuiBaseComponentName
, e.g. MuiBaseButtonUnstyled
, MuiBaseTrapFocus
.
oliviertassinari
Metadata
Metadata
Assignees
Labels
package: @mui/baseSpecific to @mui/base (legacy).Specific to @mui/base (legacy).type: bugIt doesn't behave as expected.It doesn't behave as expected.