From 4a7521eebed6c828b0af57223a5608b4e5ae4198 Mon Sep 17 00:00:00 2001 From: Kelly Date: Tue, 8 Oct 2019 20:19:36 -0400 Subject: [PATCH] fix(toggle): add top offset to fix vertical text alignment IE11 (#4213) * fix(toggle): add top offset to fix vertical text alignment IE11 * docs(toggle): add a comment for top offset change --- packages/components/src/components/toggle/_toggle.scss | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/components/src/components/toggle/_toggle.scss b/packages/components/src/components/toggle/_toggle.scss index 3a9beb2dd4b0..046c567594de 100644 --- a/packages/components/src/components/toggle/_toggle.scss +++ b/packages/components/src/components/toggle/_toggle.scss @@ -315,6 +315,9 @@ margin-left: carbon--rem(56px); @include type-style('body-short-01'); user-select: none; + // top offset needed to vertically center absolutely positioned flex child in IE11 + top: 50%; + transform: translateY(-50%); } //----------------------------------------------