Skip to content

Commit a7240fd

Browse files
authored
fix: pfe-health-index ie11 fix colors (#993)
1 parent 743913e commit a7240fd

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

CHANGELOG-prerelease.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
## Prerelease 53 ( TBD )
22

3-
- []() fix: pfe-autocomplete prevent search-event from firing twice on option select
3+
- [743913e](https://github.com/patternfly/patternfly-elements/commit/743913e0620ee0ca6f0cdf95cc1ed2597b5fe6e3) fix: pfe-autocomplete prevent search-event from firing twice on option select
44
- [f20b509](https://github.com/patternfly/patternfly-elements/commit/f20b5094b6eb02ed473b0e3dab2ea5280e56bda7) fix: pfe-autocomplete add composed flag to option-selected event (#988)
55
- [0ffd92a](https://github.com/patternfly/patternfly-elements/commit/0ffd92a621d1082b118b84a07063bd39b9c8a904) fix: Move pfe-sass to a dev dependency (#983)
6+
- [](https://github.com/patternfly/patternfly-elements/commit/) fix: pfe-health-index color support in IE11 (#992)
67

78
## Prerelease 52 ( 2020-07-17 )
89

elements/pfe-health-index/src/pfe-health-index.scss

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ $colors: (
3939
@each $level in (a b c d e f) {
4040
&.#{$level} {
4141
@include pfe-print-local((
42-
accent: #{map-get($colors, $level)},
43-
accent--text: #{pfe-var(text--on-dark)}
42+
accent: map-get($colors, $level),
43+
accent--text: pfe-var(text--on-dark)
4444
));
4545
}
4646
}
@@ -57,8 +57,18 @@ $colors: (
5757

5858
&.active {
5959
background-color: pfe-local(accent);
60+
61+
@include browser-query(ie11) {
62+
@each $level in (a b c d e f) {
63+
&.#{$level} {
64+
background-color: map-get($colors, $level);
65+
}
66+
}
67+
}
68+
6069
}
6170
}
71+
6272
:host([size="mini"]) & {
6373
display: flex;
6474
width: pfe-var(ui--element--size);
@@ -70,7 +80,18 @@ $colors: (
7080
// Color applied to the background
7181
background-color: pfe-local(accent);
7282
color: pfe-local(accent--text);
83+
84+
@include browser-query(ie11) {
85+
@each $level in (a b c d e f) {
86+
&.#{$level} {
87+
background-color: map-get($colors, $level);
88+
color: pfe-fetch(text--on-dark);
89+
}
90+
}
91+
}
92+
7393
}
94+
7495
:host([size="lg"]) & {
7596
background-color: pfe-var(surface--lightest);
7697
color: pfe-var(ui-disabled--text);
@@ -114,6 +135,16 @@ $colors: (
114135
background-color: pfe-local(accent);
115136
color: pfe-local(accent--text);
116137
}
138+
139+
@include browser-query(ie11) {
140+
@each $level in (a b c d e f) {
141+
&.#{$level} > .bottom,
142+
&.active.#{$level} .grade {
143+
background-color: map-get($colors, $level);
144+
color: pfe-fetch(text--on-dark);
145+
}
146+
}
147+
}
117148
}
118149
&-container {
119150
:host(:not([size="mini"])) & {

0 commit comments

Comments
 (0)