Skip to content

Commit

Permalink
[website] Fix the scroll-top for all the website (#33215)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Jun 24, 2022
1 parent a59baca commit 395e61c
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 @@ -103,7 +103,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 395e61c

Please sign in to comment.