Skip to content

Commit 6379525

Browse files
committed
ToC should always be sticky
1 parent a2cc3bb commit 6379525

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

dotcom-rendering/src/components/TableOfContents.importable.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,7 @@ export const TableOfContents = ({ tableOfContents, format }: Props) => {
141141
return (
142142
<details
143143
open={open}
144-
css={[
145-
detailsStyles,
146-
tableOfContents.length > 5 ? stickyStyles : undefined,
147-
]}
144+
css={[detailsStyles, stickyStyles]}
148145
data-component="table-of-contents"
149146
>
150147
<summary

0 commit comments

Comments
 (0)