Skip to content

Commit

Permalink
fix(toggle): prevent text from wrapping (#5393)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan authored Feb 20, 2020
1 parent fea7ac6 commit a84e31c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/src/components/toggle/_toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@
margin-left: carbon--rem(56px);
@include type-style('body-short-01');
user-select: none;
white-space: nowrap;
// top offset needed to vertically center absolutely positioned flex child in IE11
top: 50%;
transform: translateY(-50%);
Expand Down

0 comments on commit a84e31c

Please sign in to comment.