From a84e31c519be1de7d6d120cea76b883b1a48f2a9 Mon Sep 17 00:00:00 2001 From: TJ Egan Date: Thu, 20 Feb 2020 23:36:24 +0100 Subject: [PATCH] fix(toggle): prevent text from wrapping (#5393) --- packages/components/src/components/toggle/_toggle.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/components/src/components/toggle/_toggle.scss b/packages/components/src/components/toggle/_toggle.scss index d7be5bc525cc..30980caa7797 100644 --- a/packages/components/src/components/toggle/_toggle.scss +++ b/packages/components/src/components/toggle/_toggle.scss @@ -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%);