Skip to content

Commit

Permalink
style: add overflow-x scroll to tablist (#3030)
Browse files Browse the repository at this point in the history
resolves #916
  • Loading branch information
Barsnes authored Jan 22, 2025
1 parent 5416084 commit a3419cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-turtles-cheer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@digdir/designsystemet-css": patch
---

**Tabs**: Add overflow-x scroll to tablist
2 changes: 2 additions & 0 deletions packages/css/src/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
flex-direction: row;
border-bottom: var(--ds-border-width-default) solid var(--dsc-tabs-list-border-color);
position: relative;
overflow-x: auto;

&:not([hidden]) {
display: flex;
Expand All @@ -42,6 +43,7 @@
padding: var(--dsc-tabs-tab-padding);
position: relative;
text-align: center;
white-space: nowrap;

&:not([hidden]) {
display: flex;
Expand Down

0 comments on commit a3419cc

Please sign in to comment.