File tree 3 files changed +19
-5
lines changed
3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
- <div class =" ui5-busyindicator- root" >
1
+ <div class =" {{ classes. root}} " >
2
2
<div class =" ui5-busyindicator-wrapper" >
3
3
{{ #if active }}
4
4
<div class =" ui5-busyindicator-dynamic-content" role =" progressbar" aria-valuemin =" 0" aria-valuemax =" 100" title =" {{ ariaTitle }} " >
Original file line number Diff line number Diff line change 1
1
import UI5Element from "@ui5/webcomponents-base/dist/UI5Element.js" ;
2
2
import litRender from "@ui5/webcomponents-base/dist/renderer/LitRenderer.js" ;
3
+ import { isIE } from "@ui5/webcomponents-base/dist/Device.js" ;
3
4
import { fetchI18nBundle , getI18nBundle } from "@ui5/webcomponents-base/dist/i18nBundle.js" ;
4
5
import BusyIndicatorSize from "./types/BusyIndicatorSize.js" ;
5
6
import Label from "./Label.js" ;
@@ -159,6 +160,15 @@ class BusyIndicator extends UI5Element {
159
160
return this . i18nBundle . getText ( BUSY_INDICATOR_TITLE ) ;
160
161
}
161
162
163
+ get classes ( ) {
164
+ return {
165
+ root : {
166
+ "ui5-busyindicator-root" : true ,
167
+ "ui5-busyindicator-root--ie" : isIE ( ) ,
168
+ } ,
169
+ } ;
170
+ }
171
+
162
172
_preventEvent ( event ) {
163
173
if ( this . active ) {
164
174
event . stopImmediatePropagation ( ) ;
Original file line number Diff line number Diff line change 11
11
pointer-events : none;
12
12
}
13
13
14
+
15
+ : host ([active ]) : not (.ui5-busyindicator-root--ie ) ::slotted (: not ([class ^= "ui5-busyindicator-" ])) {
16
+ opacity : 0.6 ;
17
+ }
18
+
14
19
/**
15
- * IE fix: using just the "*" all selector in IE,
16
- * will set the opacity=0.6 to busy indicator internal elements
20
+ * IE fix: 0.6 makes the content almost invisible, so we set it to 0.95 in IE
17
21
*/
18
- : host ([active ]) ::slotted (: not ([class ^= "ui5-busyindicator-" ])) {
19
- opacity : 0.6 ;
22
+ : host ([active ]) . ui5-busyindicator-root--ie ::slotted (: not ([class ^= "ui5-busyindicator-" ])) {
23
+ opacity : 0.95 ;
20
24
}
21
25
22
26
: host ([size = "Small" ]) .ui5-busyindicator-root {
You can’t perform that action at this time.
0 commit comments