[material-ui] Duplicate class names for components #42103
Labels
package: material-ui
Specific to @mui/material
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
support: question
Community support but can be turned into an improvement
Steps to reproduce
MUI-5
I've noticed duplicate class names being added to components, such as
MuiButton-root
,MuiButton-contained
,MuiButton-containedPrimary
,MuiButton-sizeMedium
,MuiButton-containedSizeMedium
andMuiButton-colorPrimary
. This duplication occurs within the HTML elements, like the button example below. I'm unsure whether this is a bug or expected behavior. Can you clarify whether this duplication is intentional?Similar we can see in almost all component like
Checkbox
,Select
etcLink to live example: This can be seen in MUI-5 doc pages as well
https://mui.com/material-ui/react-button/
Current behavior
Duplicates values of classes in html
Expected behavior
No duplicate values should be there (if they are not intentionally added)
Your environment
npx @mui/envinfo
Search keywords: Duplicate class
The text was updated successfully, but these errors were encountered: