Skip to content

Commit

Permalink
fix(ui5-badge): fix icon visual issue in ie (#809)
Browse files Browse the repository at this point in the history
  • Loading branch information
fifoosid committed Oct 8, 2019
1 parent c981156 commit 150a100
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions packages/main/src/themes/Badge.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import "./InvisibleTextStyles.css";

:host(:not([hidden])) {
display: inline-flex;
display: inline-block;
height: 1.125em;
min-width: 1.125em;
max-width: 100%;
Expand All @@ -21,11 +21,14 @@
}

::slotted(ui5-icon) {
width: 0.75em;
height: 0.75em;
flex-shrink: 0;
width: .75em;
height: .75em;
}

/* IE 11 specific selector */
ui5-badge ui5-icon[slot="icon"] {
display: flex;
}

:host([__has-icon]) .ui5-badge-text {
padding-left: 0.1875em;
Expand Down Expand Up @@ -97,9 +100,10 @@
}

.ui5-badge-root {
display: inline-flex;
display: flex;
align-items: center;
width: 100%;
height: 100%;
box-sizing: border-box;
}

Expand Down

0 comments on commit 150a100

Please sign in to comment.