-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs] Add InitColorSchemeScript
docs and API
#45927
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] Add InitColorSchemeScript
docs and API
#45927
Conversation
Netlify deploy preview
@mui/material: parsed: +0.10% , gzip: +0.06% Bundle size reportDetails of bundle changes (Toolpad) |
@@ -1,4 +1,5 @@ | |||
import * as React from 'react'; |
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.
The change in this file is required to generate the API page.
All of the behavior remains the same.
@@ -465,3 +465,5 @@ export { default as generateUtilityClasses } from './generateUtilityClasses'; | |||
|
|||
export { default as Unstable_TrapFocus } from './Unstable_TrapFocus'; | |||
export * from './Unstable_TrapFocus'; | |||
|
|||
export { default as InitColorSchemeScript } from './InitColorSchemeScript'; |
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.
Required to generate API page.
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
docs/translations/api-docs/init-color-scheme-script/init-color-scheme-script.json
Outdated
Show resolved
Hide resolved
docs/translations/api-docs/init-color-scheme-script/init-color-scheme-script.json
Outdated
Show resolved
Hide resolved
docs/translations/api-docs/init-color-scheme-script/init-color-scheme-script.json
Outdated
Show resolved
Hide resolved
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
Co-authored-by: mapache-salvaje <[email protected]> Signed-off-by: Siriwat K <[email protected]>
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.
one last typo (that I might have introduced in my last review 😅) otherwise I think this is good to go!
docs/data/material/components/init-color-scheme-script/init-color-scheme-script.md
Outdated
Show resolved
Hide resolved
…lor-scheme-script.md Co-authored-by: mapache-salvaje <[email protected]> Signed-off-by: Siriwat K <[email protected]>
closes #43416
The docs is missing this component (
InitColorSchemeScript
).Changes are based on #43416 (comment)
InitColorSchemeScript
component.colorSchemeSelector
. People shouldn't have to click to find meaningful docs content, it should be scrollable/searchable. For example https://tailwindcss.com/docs/dark-mode#customizing-the-selector this looks correct.4. Add some demos forThis is not possible to showcase the component as a demo because it requires server rendering.InitColorSchemeScript
.