We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Take a look at a74419e.
The styles defined in theme.styleOverrides (without variants) are overridden by the Component's variants.
theme.styleOverrides
variants
const OutlinedInputInput = styled('input', { name: 'MuiOutlinedInput', slot: 'Input', })({ padding: '16.5px 14px', variants: [ { props: { size: 'small', }, style: { padding: '8.5px 14px', }, }, { props: ({ ownerState }) => ownerState.multiline, style: { padding: 0, }, }, { props: ({ ownerState }) => ownerState.startAdornment, style: { paddingLeft: 0, }, }, { props: ({ ownerState }) => ownerState.endAdornment, style: { paddingRight: 0, }, }, ], }); // theme { themeArgs: { theme: { components: { MuiOutlinedInput: { styleOverrides: { input: { paddingLeft: 10, }, }, }, }, }, }, }
See the generated CSS
The generated CSS of theme.styleOverrides should come last.
No response
npx @mui/envinfo
Don't forget to mention which browser you used. Output from `npx @mui/envinfo` goes here.
Search keywords: overrides
The text was updated successfully, but these errors were encountered:
[enhancement] Reorder the css generation order for styled calls
c6f8c50
to match with @mui/system Fixes mui#55
a5dc82c
5d3f230
983a6a8
brijeshb42
Successfully merging a pull request may close this issue.
Steps to reproduce
Take a look at a74419e.
Current behavior
The styles defined in
theme.styleOverrides
(without variants) are overridden by the Component'svariants
.See the generated CSS
Expected behavior
The generated CSS of
theme.styleOverrides
should come last.Context
No response
Your environment
npx @mui/envinfo
Search keywords: overrides
The text was updated successfully, but these errors were encountered: