Skip to content

Commit 40d487f

Browse files
authored
Merge pull request #250 from dotCMS/h4-on-this-page-indent
fixed indenting for h4s on the TOC so they're not level with h3s.
2 parents 1acf842 + 5d300cc commit 40d487f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

components/navigation/OnThisPage.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ export const OnThisPage = ({
8484
className={`
8585
${item.level === 1 ? 'ml-0 font-bold' : ''}
8686
${item.level === 2 ? 'ml-2 font-semibold' : ''}
87-
${(item.level === 3 || item.level === 4) ? 'ml-4 font-normal text-muted-foreground' : ''}
87+
${item.level === 3 ? 'ml-4 font-normal text-muted-foreground' : ''}
88+
${item.level === 4 ? 'ml-6 font-normal text-muted-foreground' : ''}
89+
${item.level >= 5 ? 'ml-8 font-normal text-muted-foreground' : ''}
90+
// note: h5 headers not currently used in the selectors list;
91+
// they're just included here for completeness
8892
`}
8993
>
9094
<Link

0 commit comments

Comments
 (0)