File tree 5 files changed +20
-47
lines changed
core/src/components/spinner
5 files changed +20
-47
lines changed Original file line number Diff line number Diff line change @@ -93,6 +93,12 @@ boolean
93
93
If true, the spinner's animation will be paused. Defaults to ` false ` .
94
94
95
95
96
+ ## CSS Custom Properties
97
+
98
+ | Name | Description |
99
+ | --------- | -------------------- |
100
+ | ` --color ` | Color of the spinner |
101
+
96
102
97
103
----------------------------------------------
98
104
Original file line number Diff line number Diff line change 1
1
@import " ./spinner" ;
2
2
@import " ./spinner.ios.vars" ;
3
-
4
- // iOS Spinner
5
- // --------------------------------------------------
6
-
7
- :host (.spinner-lines ) {
8
- --ion-color-base : #{$spinner-ios-lines-color } ;
9
- }
10
-
11
- :host (.spinner-bubbles ) {
12
- --ion-color-base : #{$spinner-ios-bubbles-color } ;
13
- }
14
-
15
- :host (.spinner-circles ) {
16
- --ion-color-base : #{$spinner-ios-circles-color } ;
17
- }
18
-
19
- :host (.spinner-crescent ) {
20
- --ion-color-base : #{$spinner-ios-crescent-color } ;
21
- }
22
-
23
- :host (.spinner-dots ) {
24
- --ion-color-base : #{$spinner-ios-dots-color } ;
25
- }
Original file line number Diff line number Diff line change 1
1
@import " ./spinner" ;
2
2
@import " ./spinner.md.vars" ;
3
-
4
- // Material Design Spinner
5
- // --------------------------------------------------
6
-
7
- :host (.spinner-lines-md ) {
8
- --ion-color-base : #{$spinner-md-lines-color } ;
9
- }
10
-
11
- :host (.spinner-bubbles ) {
12
- --ion-color-base : #{$spinner-md-bubbles-color } ;
13
- }
14
-
15
- :host (.spinner-circles ) {
16
- --ion-color-base : #{$spinner-md-circles-color } ;
17
- }
18
-
19
- :host (.spinner-crescent ) {
20
- --ion-color-base : #{$spinner-md-crescent-color } ;
21
- }
22
-
23
- :host (.spinner-dots ) {
24
- --ion-color-base : #{$spinner-md-dots-color } ;
25
- }
Original file line number Diff line number Diff line change 4
4
// --------------------------------------------------
5
5
6
6
:host {
7
+ /* *
8
+ * @prop --color: Color of the spinner
9
+ */
10
+
7
11
display : inline-block ;
8
12
position : relative ;
9
13
10
14
width : 28px ;
11
15
height : 28px ;
12
16
17
+ color : var (--color );
18
+
13
19
user-select : none ;
14
20
}
15
21
16
22
:host (.ion-color ) {
17
- color : #{ current-color (base )} ;
23
+ color : current-color (base );
18
24
}
19
25
20
26
svg {
Original file line number Diff line number Diff line change 17
17
< ion-spinner name ="bubbles "> </ ion-spinner >
18
18
< ion-spinner name ="circles "> </ ion-spinner >
19
19
< ion-spinner name ="crescent "> </ ion-spinner >
20
+ < ion-spinner name ="lines " class ="custom "> </ ion-spinner >
20
21
< ion-spinner paused > </ ion-spinner >
22
+
23
+ < style >
24
+ .custom {
25
+ --color : red;
26
+ }
27
+ </ style >
21
28
</ body >
22
29
</ html >
You can’t perform that action at this time.
0 commit comments