DefaultPropsProvider doesn't work with @mui/x packages #335
Labels
customization: theme
Centered around the theming features
status: waiting for maintainer
These issues haven't been looked at yet by a maintainer
Steps to reproduce
Following the migration guide to PigmentCSS, we use
DefaultPropsProvider
to migrate all ourdefaultProps
customizations.These customizations don't appear to work with PigmentCSS. Note that customizations from normal MUI components (Stack/Box/Typography...) continue to work.
One simplest example is to have this is to customize the DatePicker's opening icon
and under PigmentCSS build, it always shows the default opening icon and not the custom one.
Note
We use a simple function to iterate through all MUI components and extract out all
defaultProps
to put inDefaultPropsProvider
.Current behavior
This recording shows the difference between our current runtime CSS vs experimental build with PigmentCSS
Screen.Recording.2024-11-29.at.10.14.22.mov
Expected behavior
MUI X packages should work with
DefaultPropsProvider
like any other normal MUI components.Context
We are trying to move to PigmentCSS build
Your environment
npx @mui/envinfo
Search keywords: @mui/x, DefaultPropsProvider
The text was updated successfully, but these errors were encountered: