-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
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
Component customization and extension related issues #34883
Comments
Does it make sense to include #32967 as well under this umbrella? |
Thanks, it should be included! |
Thanks for creating this umbrella issue @siriwatknp It shows really nicely the different aspects of the problem. |
Thanks for putting this together @siriwatknp!! 🙌 |
Migrated to v6 and implemented own theme solution inly to see that I can't use my custom palette as a color prop, because it have 3 level of depth and I haven't found a way to use the nested property from the palette. |
The list is still missing #19466. |
This umbrella issue collects customization-related issues to help the core team see the big picture about the underlying problems (could be poor documentation, lack of features, etc.). Once we have identified and categorized the problems, we will prioritize the work and ask for help from the community.
For the community, feel free to jump into the discussion and share your thoughts, use cases, needs, or anything that you think it is important for us to consider.
As a first draft, I have gone through 30 pages of issues (til Jun 2021) and grouped the issues based on my understanding:
Extending theme variants
shouldForwardProp
to theme #34831: to apply styles based on the custom prop which spread to DOM.styleOverrides
to target parts in new component variants #34715: want to target child slots in theme variants.size
prop does not work alongsidevariant
prop #34600: (specific to Button) custom variant does not work with size prop.sx
at the end, overrides thestyleOverrides
.variant
prop type in all components #33510: all components should have a variant prop to be extendable (the author mentioned that the docs is misleading).Custom components
styled
components! #34768: a custom component via MUIstyled
does not bind to theme typings.defaultProps
from theme to rootstyled
component #34539: basically moveuseThemeProps
to an option instyled
.component
prop lost when wrapping withstyled
#29875attrs
Composition
componentsProps
in LoadingButtonTheming
slots
overrides do not merge with the theme #34214: should shallow merge slots with theme default props.TextField
andAutocomplete
.ThemeProvider
theme.shape.borderRadius
definition in d.ts #35156sx
propsx
functionality to support other aliases.sx
prop #29734sx
spacing supportOthers
css
to get the same experience asmakeStyles
.color
prop is not documented but it works #32269: Typographycolor
confusion.color
#30420: Buttoncolor
confusioncolor
prop #29596: Linkcolor
confusioncolor
and theme palette confusioncolor="action.disabled"
is crashing #32270: inconsistentcolor
prop causes confusionunknown
#30678: theme typography typingsunstable_breakpoints
-related functions #29864theme.spacing()
#29677: theme spacing functionalitystyle
props to component SxProps. #27673: MUI systemstyle
The text was updated successfully, but these errors were encountered: