Skip to content
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] Update customization/components and customization/global pages #24016

Merged
merged 82 commits into from Dec 20, 2020

Conversation

mnajdova
Copy link
Member

@mnajdova mnajdova commented Dec 14, 2020

This PR updates the customization/global and customization/components pages.

@mui-pr-bot
Copy link

mui-pr-bot commented Dec 14, 2020

Details of bundle changes

Generated by 🚫 dangerJS against d3728f9

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Dec 14, 2020
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A beginning of a review. While we are working on covering the different customization options. I think we could have something on how to identify which element to customize, e.g. with the devtools, then how to cover it into a working override.

On a different note. It feels like /customization/globals/ should actually be /customization/components/ as it covers theme.components. It also feels like https://next.material-ui.com/customization/components/#5-global-theme-variation and https://next.material-ui.com/customization/globals/ covers the same thing.

docs/src/pages/customization/components/SxProp.tsx Outdated Show resolved Hide resolved
docs/src/pages/customization/components/SxProp.tsx Outdated Show resolved Hide resolved
docs/src/pages/customization/components/components.md Outdated Show resolved Hide resolved
docs/src/pages/customization/components/components.md Outdated Show resolved Hide resolved
docs/src/pages/customization/components/components.md Outdated Show resolved Hide resolved
docs/src/pages/customization/components/components.md Outdated Show resolved Hide resolved
docs/src/pages/customization/components/components.md Outdated Show resolved Hide resolved
docs/src/pages/customization/components/components.md Outdated Show resolved Hide resolved
docs/src/pages/customization/components/components.md Outdated Show resolved Hide resolved
mnajdova and others added 13 commits December 15, 2020 13:03
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
@@ -282,7 +282,7 @@ export interface CSSProperties
/**
* Map of all CSS pseudo selectors (`:hover`, `:focus`, ...).
*/
export type CSSPseudoSelectorProps = { [K in CSS.Pseudos]?: SystemStyleObject };
export type CSSPseudoSelectorProps<Theme extends object = {}> = { [K in CSS.Pseudos]?: SystemStyleObject<Theme> };
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract these changes to different PR.

@mnajdova
Copy link
Member Author

While we are working on covering the different customization options. I think we could have something on how to identify which element to customize, e.g. with the devtools, then how to cover it into a working override.

Let me revert and extend the Using the dev tools section, as proposed in #24016 (comment)

On a different note. It feels like /customization/globals/ should actually be /customization/components/ as it covers theme.components. It also feels like https://next.material-ui.com/customization/components/#5-global-theme-variation and https://next.material-ui.com/customization/globals/ covers the same thing.

Maybe we can just extend the https://next.material-ui.com/customization/globals/ to contain the stylesOverrides and variants options from the theme.components and just link these under the last point of global theme variation.

@mnajdova mnajdova marked this pull request as ready for review December 15, 2020 16:08
mnajdova and others added 20 commits December 19, 2020 09:28
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Olivier Tassinari <olivier.tassinari@gmail.com>
Co-authored-by: Matt <github@nospam.33m.co>
Co-authored-by: Matt <github@nospam.33m.co>
@stunaz
Copy link
Contributor

stunaz commented Dec 24, 2020

@mnajdova does this work for all components or only migrated components? it doesnt seem to work with Divider for example... see https://codesandbox.io/s/sxprop-material-demo-forked-wdfhz?file=/demo.tsx

@mnajdova
Copy link
Member Author

@mnajdova does this work for all components or only migrated components? it doesnt seem to work with Divider for example... see https://codesandbox.io/s/sxprop-material-demo-forked-wdfhz?file=/demo.tsx

@stunaz it works only on the migrated components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants