Skip to content

Commit

Permalink
Set single expand to false
Browse files Browse the repository at this point in the history
  • Loading branch information
RunarVestmann committed Oct 8, 2024
1 parent 545b71b commit 610b675
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions apps/web/screens/Manual/ManualChangelog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,21 @@ const ManualChangelog: ManualScreen = ({ manual, namespace }) => {
namespace={namespace}
socialTitle={generateOgTitle(manual?.title, manualChangelogTitle)}
>
<Stack space={2}>
<Stack space={5}>
<LinkV2
className={styles.smallLink}
className={styles.link}
underline="small"
underlineVisibility="always"
href={linkResolver('manual', [manual?.slug as string]).href}
color="blue400"
>
{n(
'manualFrontpage',
activeLocale === 'is' ? 'Forsíða handbókar' : 'Manual frontpage',
)}
</LinkV2>
<Divider />
<Box paddingTop={2}>
<Box>
<Stack space={2}>
<Text variant="h2" as="h1">
{manualChangelogTitle}
Expand Down Expand Up @@ -94,7 +95,7 @@ const ManualChangelog: ManualScreen = ({ manual, namespace }) => {
</Box>
)}
{changelog?.length > 0 && (
<Accordion>
<Accordion singleExpand={false}>
{changelog.map(({ year, dates }) => (
<AccordionItem
labelUse="h2"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/screens/Manual/ManualChapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const ManualChapter: ManualScreen = ({ manual, manualChapter, namespace }) => {

<Stack space={3}>
{manualChapter && (
<Accordion>
<Accordion singleExpand={false}>
{manualChapter.chapterItems.map((item) => (
<AccordionItem
labelUse="h2"
Expand Down

0 comments on commit 610b675

Please sign in to comment.