Skip to content

Commit

Permalink
fix dropdownmenu on other apps and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Barsnes committed Jun 18, 2024
1 parent 35dbabd commit 605188a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions apps/storefront/components/Tokens/TokenList/TokenList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ const TokenList = ({
{(showThemePicker || showModeSwitcher) && (
<div className={classes.toggleGroup}>
{showThemePicker && (
<DropdownMenu>
<DropdownMenu.Root>
<DropdownMenu.Trigger variant='secondary'>
Brand: {capitalizeString(brand)}
</DropdownMenu.Trigger>
Expand All @@ -237,10 +237,10 @@ const TokenList = ({
Brreg
</DropdownMenu.Item>
</DropdownMenu.Content>
</DropdownMenu>
</DropdownMenu.Root>
)}
{showModeSwitcher && (
<DropdownMenu>
<DropdownMenu.Root>
<DropdownMenu.Trigger variant='secondary'>
Mode: {mode}
</DropdownMenu.Trigger>
Expand All @@ -252,7 +252,7 @@ const TokenList = ({
Dark
</DropdownMenu.Item>
</DropdownMenu.Content>
</DropdownMenu>
</DropdownMenu.Root>
)}
</div>
)}
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/DropdownMenu/DropdownMenu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import { DropdownMenu } from './';
```tsx
import { DropdownMenu } from '@digdir/designsystemet-react';

<DropdownMenu>
<DropdownMenu.Root>
<DropdownMenu.Trigger>Trigger</DropdownMenu.Trigger>
<DropdownMenu.Content>
<DropdownMenu.Group>
<DropdownMenu.Item>Item</DropdownMenu.Item>
</DropdownMenu.Group>
</DropdownMenu.Content>
</DropdownMenu>;
</DropdownMenu.Root>;
```

## Eksempler på bruk
Expand Down

0 comments on commit 605188a

Please sign in to comment.