Skip to content

Commit

Permalink
[website] Fix the scroll-top for all the website
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 19, 2022
1 parent 2583f02 commit fc3aee8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/src/modules/brandingTheme.ts
Expand Up @@ -271,6 +271,9 @@ export const getDesignTokens = (mode: 'light' | 'dark') =>
letterSpacing: 0,
fontWeight: 700,
},
allVariants: {
scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
},
},
} as ThemeOptions);

Expand Down
1 change: 0 additions & 1 deletion docs/src/modules/components/JoyUsageDemo.tsx
Expand Up @@ -230,7 +230,6 @@ export default function JoyUsageDemo<T extends { [k: string]: any } = {}>({
<ReplayRoundedIcon />
</IconButton>
</Box>

<Box
sx={{
display: 'flex',
Expand Down
1 change: 0 additions & 1 deletion docs/src/modules/components/MarkdownElement.js
Expand Up @@ -102,7 +102,6 @@ const Root = styled('div')(({ theme }) => ({
}),
},
'& h1, & h2, & h3, & h4': {
scrollMarginTop: 'calc(var(--MuiDocs-header-height) + 32px)',
'& code': {
fontSize: 'inherit',
lineHeight: 'inherit',
Expand Down

0 comments on commit fc3aee8

Please sign in to comment.