Skip to content

Commit

Permalink
docs: 📝 Add Designsystemet data attr controls to Showcase in Storybook (
Browse files Browse the repository at this point in the history
#2689)

fixes #2690
Any suggestions on labeling for the `ToggleGroup`?
  • Loading branch information
mimarz authored Oct 30, 2024
1 parent 42fc24c commit 35049eb
Show file tree
Hide file tree
Showing 3 changed files with 341 additions and 306 deletions.
4 changes: 4 additions & 0 deletions apps/storybook/.storybook/manager-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
font-family: 'Inter', sans-serif;
}

iframe {
color-scheme: auto;
}

.ds-focus:focus-visible {
--dsc-focus-border-width: 3px;

Expand Down
15 changes: 14 additions & 1 deletion packages/react/stories/showcase.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@
margin: 0 auto;
background-color: var(--ds-color-neutral-background-default);
border-radius: var(--ds-border-radius-md);
padding: 1rem;
}

.controls {
display: grid;
grid-template-columns: repeat(3, auto);
grid-template-rows: auto;
gap: var(--ds-spacing-4);
padding-bottom: var(--ds-spacing-2);
align-items: baseline;
}

.controls code {
background: var(--ds-color-neutral-background-subtle);
padding: var(--ds-spacing-1);
}

.card {
Expand Down
Loading

0 comments on commit 35049eb

Please sign in to comment.