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

Remove IE flex and display CSS fixes & fallbacks #6161

Merged
merged 12 commits into from
Aug 24, 2022
Prev Previous commit
Next Next commit
[EuiBadge] Remove unnecessary flex CSS
- truncation and display still appears to all work as before without issue
cee-chen committed Aug 23, 2022
commit f6bc21947834b0d1aa61af4cac721f554a11da70
5 changes: 0 additions & 5 deletions src/components/badge/_badge.scss
Original file line number Diff line number Diff line change
@@ -43,7 +43,6 @@

.euiBadge__childButton {
@include euiTextTruncate;
flex: 1 1 auto; // Must be 1 and 1 for IE to properly truncate
text-align: inherit;
font-weight: inherit;
line-height: inherit;
@@ -62,7 +61,6 @@
}

.euiBadge__iconButton {
flex: 0 0 auto;
font-size: 0; // Makes the button only as large as the icon so it aligns vertically better
margin-left: $euiSizeXS;

@@ -84,13 +82,10 @@

.euiBadge__text {
@include euiTextTruncate;
flex: 1 1 auto;
cursor: default;
}

.euiBadge__icon {
flex: 0 0 auto;

&:not(:only-child) {
margin-left: $euiSizeXS;
}