-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[docs] Document the global class names #16770
[docs] Document the global class names #16770
Conversation
No bundle size changes comparing bff38c1...b3bf589 |
b920dde
to
d67aab8
Compare
d67aab8
to
b3bf589
Compare
|
||
If using the \`overrides\` [key of the theme](/customization/themes/#css), | ||
you need to use the following style sheet name: \`${reactAPI.styles.name}\`. | ||
If it's not enough, you can find the [implementation of the component](${SOURCE_CODE_ROOT_URL}${normalizePath( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This is a massive improvement to the customisation documentation 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would have helped if I'd clicked submit 🤦🏻♂️
reactAPI.filename, | ||
)}) | ||
for more detail. | ||
You can override the style of the component thanks to one of these customizability points: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can override the style of the component thanks to one of these customizability points: | |
You can override the style of the component thanks to one of these customization points: |
|
||
If using the `overrides` [key of the theme](/customization/themes/#css), | ||
you need to use the following style sheet name: `MuiAvatar`. | ||
If it's not enough, you can find the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Avatar/Avatar.js) for more detail. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's not enough, you can find the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Avatar/Avatar.js) for more detail. | |
If that's not sufficient, you can check the [implementation of the component](https://github.com/mui-org/material-ui/blob/master/packages/material-ui/src/Avatar/Avatar.js) for more detail. |
My bad! |
This is something I wanted to work on since the release of v4 and the introduction of global class names: