Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
26 lines
838 B
JavaScript
26 lines
838 B
JavaScript
import * as React from 'react';
|
|
import { CssVarsProvider } from '@mui/joy/styles';
|
|
import Box from '@mui/joy/Box';
|
|
import CssBaseline from '@mui/joy/CssBaseline';
|
|
|
|
export default function JoyCssBaseline() {
|
|
return (
|
|
<CssVarsProvider>
|
|
<CssBaseline />
|
|
<Box sx={{ p: 2, display: 'flex', flexDirection: 'column', gap: 2 }}>
|
|
<Box sx={{ width: 300, height: 100, overflow: 'scroll', bgcolor: 'background.level1' }}>
|
|
{/* The scrollbar should be light */}
|
|
<Box sx={{ height: 1000 }} />
|
|
</Box>
|
|
<Box
|
|
data-joy-color-scheme="dark"
|
|
sx={{ width: 300, height: 100, overflow: 'scroll', bgcolor: 'background.level1' }}
|
|
>
|
|
{/* The scrollbar should be dark */}
|
|
<Box sx={{ height: 1000 }} />
|
|
</Box>
|
|
</Box>
|
|
</CssVarsProvider>
|
|
);
|
|
}
|