-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
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
[ThemeProvider] Support setting default mode #43951
Conversation
Netlify deploy previewBundle size reportDetails of bundle changes (Toolpad) |
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.
Small suggestion to satisfy vale, otherwise looks good.
Co-authored-by: Jan Potoms <[email protected]> Signed-off-by: Siriwat K <[email protected]>
@@ -36,6 +36,12 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC | |||
* @default document | |||
*/ | |||
documentNode?: Document | null; | |||
/** | |||
* The default mode when the storage is empty, |
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.
What does "storage" mean? Could we specify a bit more?
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.
May be local storage
is more direct?
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.
👍
Co-authored-by: Aarón García Hervás <[email protected]> Signed-off-by: Siriwat K <[email protected]>
closes #43622
Changes
The default mode can be controlled by a prop (see #43622 for use cases):