Skip to content

Commit

Permalink
[docs] Fix layout shift when scrolling (#29436)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari authored Nov 1, 2021
1 parent 67ee956 commit aa7afc1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/modules/components/AppTableOfContents.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const NavLabel = styled(Typography)(({ theme }) => {
marginTop: theme.spacing(2),
paddingLeft: theme.spacing(1.5),
fontSize: theme.typography.pxToRem(12),
fontWeight: 700,
fontWeight: theme.typography.fontWeightBold,
color:
theme.palette.mode === 'dark' ? alpha(theme.palette.grey[500], 0.5) : theme.palette.grey[500],
};
Expand All @@ -50,7 +50,6 @@ const NavItem = styled(Link, {
borderLeftColor:
theme.palette.mode === 'light' ? theme.palette.primary[200] : theme.palette.primary[600],
color: theme.palette.mode === 'dark' ? theme.palette.primary[300] : theme.palette.primary[500],
fontWeight: 700,
};

return {
Expand Down

0 comments on commit aa7afc1

Please sign in to comment.