Skip to content

Commit 150a100

Browse files
authored
fix(ui5-badge): fix icon visual issue in ie (#809)
1 parent c981156 commit 150a100

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

packages/main/src/themes/Badge.css

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@import "./InvisibleTextStyles.css";
22

33
:host(:not([hidden])) {
4-
display: inline-flex;
4+
display: inline-block;
55
height: 1.125em;
66
min-width: 1.125em;
77
max-width: 100%;
@@ -21,11 +21,14 @@
2121
}
2222

2323
::slotted(ui5-icon) {
24-
width: 0.75em;
25-
height: 0.75em;
26-
flex-shrink: 0;
24+
width: .75em;
25+
height: .75em;
2726
}
2827

28+
/* IE 11 specific selector */
29+
ui5-badge ui5-icon[slot="icon"] {
30+
display: flex;
31+
}
2932

3033
:host([__has-icon]) .ui5-badge-text {
3134
padding-left: 0.1875em;
@@ -97,9 +100,10 @@
97100
}
98101

99102
.ui5-badge-root {
100-
display: inline-flex;
103+
display: flex;
101104
align-items: center;
102105
width: 100%;
106+
height: 100%;
103107
box-sizing: border-box;
104108
}
105109

0 commit comments

Comments
 (0)