Skip to content

Commit

Permalink
fix(toggle): add top offset to fix vertical text alignment IE11 (#4213)
Browse files Browse the repository at this point in the history
* fix(toggle): add top offset to fix vertical text alignment IE11

* docs(toggle): add a comment for top offset change
  • Loading branch information
kbondanza authored and abbeyhrt committed Oct 22, 2019
1 parent 1931d60 commit 4a7521e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/components/src/components/toggle/_toggle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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%);
}

//----------------------------------------------
Expand Down

0 comments on commit 4a7521e

Please sign in to comment.