Skip to content

Commit

Permalink
Default table of contents to open on mobile
Browse files Browse the repository at this point in the history
Closes #776
Closes #775
  • Loading branch information
lukekarrys committed Oct 23, 2023
1 parent 8567bd4 commit f8f9934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/table-of-contents.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const withTableOfContents = Component => {
}

export const Mobile = withTableOfContents(({items}) => {
const {getDetailsProps, open} = useDetails({})
const {getDetailsProps, open} = useDetails({defaultOpen: true})
return (
<Box sx={{display: ['block', null, 'none'], mb: 3}}>
<Details {...getDetailsProps()}>
Expand Down

0 comments on commit f8f9934

Please sign in to comment.