Skip to content

Commit

Permalink
[frontend] fix TOC items style
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastien-comeau committed Jun 20, 2023
1 parent 84cab46 commit 9ac1233
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions frontend/src/components/TableOfContents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,10 @@ export const TableOfContents: FC<TableOfContentsProps> = ({ header, items }) =>
>
<ListItemText
primary={text}
primaryTypographyProps={{ variant: 'body1' }}
sx={{
'.MuiTypography-root': {
fontWeight: 700,
color: activeState === hash ? '#004f56' : 'rgba(0,0,0,0.6)',
fontSize: '18px',
},
primaryTypographyProps={{
className: `font-bold font-display text-lg ${
activeState === hash ? 'text-primary-700' : 'text-black/60'
}`,
}}
/>
</ListItemButton>
Expand All @@ -141,7 +138,7 @@ export const TableOfContents: FC<TableOfContentsProps> = ({ header, items }) =>
history.pushState({}, document.title, ' ')
}}
>
<ArrowDropUp color="primary" className='mr-2' />
<ArrowDropUp color="primary" className="mr-2" />
<ListItemText
primary={t('table-of-contents.top')}
primaryTypographyProps={{ variant: 'body1' }}
Expand Down

0 comments on commit 9ac1233

Please sign in to comment.