Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(combobox/text-input): add svg top positioning for IE11 #5362

Merged
merged 13 commits into from
Feb 18, 2020
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@import '../../globals/scss/vars';
@import '../../globals/scss/vendor/@carbon/elements/scss/import-once/import-once';
@import '../list-box/list-box';
@import '../../globals/scss/css--reset';

/// Combo box styles
/// @access private
Expand Down
3 changes: 3 additions & 0 deletions packages/components/src/components/list-box/_list-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,9 @@ $list-box-menu-width: rem(300px);
.#{$prefix}--list-box__selection {
position: absolute;
right: rem(33px); // to preserve .5rem space between icons according to spec
// top/transform used to center invalid icon in IE11
top: 50%;
transform: translateY(-50%);
display: flex;
justify-content: center;
align-items: center;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
.#{$prefix}--text-input__invalid-icon {
position: absolute;
right: $carbon--spacing-05;
// top/transform used to center invalid icon in IE11
top: 50%;
transform: translateY(-50%);
fill: $support-01;
}

Expand Down