Skip to content

Commit

Permalink
fix: temp vertical tabs (#75)
Browse files Browse the repository at this point in the history
* fix: allow for breakpoint to overridden

* fix: remaining documentation updates

* fix: corrected variable use
  • Loading branch information
ColinBuyck authored Feb 21, 2024
1 parent e9e7df1 commit 36b3091
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/navigation/Tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
--tab-active-indicator-color: var(--seeds-color-primary);
--tab-panel-padding: var(--seeds-spacer-section);
--tab-panel-background-color: var(--seeds-bg-color-surface);
@custom-media --tab-collapse-breakpoint (--sm-only);
}

.tabs-tablist {
Expand Down Expand Up @@ -105,7 +106,7 @@
}
}

@media (max-width: 640px) {
@media (--tab-collapse-breakpoint) {
.tabs-tablist {
flex-direction: column;
}
Expand Down
1 change: 1 addition & 0 deletions src/navigation/__stories__/Tabs.docs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ import { Swatch } from "../../../documentation/components/Swatch.tsx"
| `--tab-active-indicator-color` | <Swatch color="bloom-color-primary" /> | `--seeds-color-primary` |
| `--tab-panel-padding` | Spacing within the panel interior | `--seeds-spacer-section` |
| `--tab-panel-background-color` | <Swatch color="bloom-bg-color-surface" border={true} /> | `--seeds-bg-color-surface` |
| `--tab-collapse-breakpoint` | Screen size breakpoint for vertical orientation | `--sm-only` |

0 comments on commit 36b3091

Please sign in to comment.