Skip to content

Commit 97f178d

Browse files
simurailangermank
andauthored
Prevent SegmentedControl-text from wrapping (#2174)
* Prevent SegmentedControl-text from wrapping * Create poor-dots-play.md Co-authored-by: Katie Langerman <langermank@github.com>
1 parent add769c commit 97f178d

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/poor-dots-play.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Prevent `SegmentedControl-text` from wrapping

src/segmented-control/segmented-control.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@
9090
// Text -----------------------------------------
9191

9292
.SegmentedControl-text {
93+
white-space: nowrap;
94+
9395
// renders a visibly hidden "copy" of the text in bold, reserving box space for when text becomes bold on selected
9496
&[data-content]::before {
9597
display: block;

0 commit comments

Comments
 (0)