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

[material-ui][docs] Dark scroll bars in templates #43483

Merged
merged 2 commits into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/data/material/getting-started/templates/blog/Blog.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Blog() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? blogTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<AppAppBar />
<Container
maxWidth="lg"
Expand Down
2 changes: 1 addition & 1 deletion docs/data/material/getting-started/templates/blog/Blog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Blog() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? blogTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />

<AppAppBar />
<Container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function Checkout() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? checkoutTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<Grid container sx={{ height: { xs: '100%', sm: '100dvh' } }}>
<Grid
size={{ xs: 12, sm: 5, lg: 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function Checkout() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? checkoutTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />

<Grid container sx={{ height: { xs: '100%', sm: '100dvh' } }}>
<Grid
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function Dashboard() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? dashboardTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<Box sx={{ display: 'flex' }}>
<SideMenu />
<AppNavbar />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Dashboard() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? dashboardTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<Box sx={{ display: 'flex' }}>
<SideMenu />
<AppNavbar />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function MarketingPage() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? MPTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<AppAppBar />
<Hero />
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function MarketingPage() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? MPTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />

<AppAppBar />
<Hero />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function SignInSide() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? SignInSideTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<Stack
direction="column"
component="main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default function SignInSide() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? SignInSideTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<Stack
direction="column"
component="main"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export default function SignIn() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? SignInTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<SignInContainer direction="column" justifyContent="space-between">
<Card variant="outlined">
<SitemarkIcon />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default function SignIn() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? SignInTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<SignInContainer direction="column" justifyContent="space-between">
<Card variant="outlined">
<SitemarkIcon />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export default function SignUp() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? SignUpTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />
<SignUpContainer direction="column" justifyContent="space-between">
<Stack
sx={{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default function SignUp() {
toggleColorMode={toggleColorMode}
>
<ThemeProvider theme={showCustomTheme ? SignUpTheme : defaultTheme}>
<CssBaseline />
<CssBaseline enableColorScheme />

<SignUpContainer direction="column" justifyContent="space-between">
<Stack
Expand Down