Skip to content

Commit

Permalink
misc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 18, 2024
1 parent d20f272 commit 458adb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions apps/theme/components/Previews/Components/Components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ export const Components = () => {
>
Ofte stillte spørsmål
</Heading>
<Accordion
<Accordion.Root
color='brand3'
border
className={classes.accordion}
Expand Down Expand Up @@ -531,7 +531,7 @@ export const Components = () => {
registrene samtidig i Samordnet registermelding.
</Accordion.Content>
</Accordion.Item>
</Accordion>
</Accordion.Root>
</div>
</div>
);
Expand Down
10 changes: 5 additions & 5 deletions packages/react/stories/react-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@ som ligger i en klient komponent, som `Accordion` er.

<CodeSnippet language='ts'>
{`
import { Accordion, AccordionHeader, AccordionItem, AccordionContent } from '@digdir/designsystemet-react';
import { AccordionRoot, AccordionHeader, AccordionItem, AccordionContent } from '@digdir/designsystemet-react';
<Accordion>
<AccordionRoot>
<AccordionItem>
<AccordionHeader>...</AccordionHeader>
<AccordionContent>...</AccordionContent>
</AccordionItem>
</Accordion>
</AccordionRoot>
`}
</CodeSnippet>

Expand All @@ -59,11 +59,11 @@ import { Accordion, AccordionHeader, AccordionItem, AccordionContent } from '@di
{`
import { Accordion } from '@digdir/designsystemet-react';
<Accordion>
<Accordion.Root>
<Accordion.Item>
<Accordion.Header>...</Accordion.Header>
<Accordion.Content>...</Accordion.Content>
</Accordion.Item>
</Accordion>
</Accordion.Root>
`}
</CodeSnippet>
4 changes: 2 additions & 2 deletions packages/react/stories/showcase.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ export const Showcase: StoryFn = () => {
>
Ofte stillte spørsmål
</Heading>
<Accordion
<Accordion.Root
color='brand3'
border
>
Expand Down Expand Up @@ -464,7 +464,7 @@ export const Showcase: StoryFn = () => {
registrene samtidig i Samordnet registermelding.
</Accordion.Content>
</Accordion.Item>
</Accordion>
</Accordion.Root>
</div>
</div>
);
Expand Down

0 comments on commit 458adb7

Please sign in to comment.