Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Aarón García Hervás <[email protected]>
Signed-off-by: Siriwat K <[email protected]>
  • Loading branch information
siriwatknp and aarongarciah authored Oct 1, 2024
1 parent e07eebf commit 980c206
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/mui-material/src/styles/ThemeProvider.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ describe('ThemeProvider', () => {
expect(getByTestId('mode-switcher')).to.have.property('value', 'dark');
});

it('should be dark by default', () => {
it('allows default mode to be changed', () => {
const theme = createTheme({
colorSchemes: { dark: true },
});
Expand Down
4 changes: 2 additions & 2 deletions packages/mui-material/src/styles/ThemeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ export interface ThemeProviderProps<Theme = DefaultTheme> extends ThemeProviderC
*/
documentNode?: Document | null;
/**
* The default mode when the storage is empty,
* require the theme to have `colorSchemes` with light and dark.
* The default mode when the local storage has no mode yet,
* requires the theme to have `colorSchemes` with light and dark.
* @default 'system'
*/
defaultMode?: 'light' | 'dark' | 'system';
Expand Down

0 comments on commit 980c206

Please sign in to comment.