| 
96 | 96 | /* Extra Small and Small Button */  | 
97 | 97 | :host(.button-xsmall),  | 
98 | 98 | :host(.button-small) {  | 
99 |  | -  ::slotted(ion-icon[slot="start"]) {  | 
 | 99 | +  ::slotted(ion-icon[slot="start"]),  | 
 | 100 | +  ::slotted(ion-spinner[slot="start"]) {  | 
100 | 101 |     @include globals.margin-horizontal(null, globals.$ion-space-100);  | 
101 | 102 |   }  | 
102 | 103 | 
 
  | 
103 |  | -  ::slotted(ion-icon[slot="end"]) {  | 
 | 104 | +  ::slotted(ion-icon[slot="end"]),  | 
 | 105 | +  ::slotted(ion-spinner[slot="end"]) {  | 
104 | 106 |     @include globals.margin-horizontal(globals.$ion-space-100, null);  | 
105 | 107 |   }  | 
106 | 108 | }  | 
 | 
163 | 165 |   ::slotted(ion-icon[slot="end"]),  | 
164 | 166 |   ::slotted(ion-icon[slot="icon-only"]) {  | 
165 | 167 |     font-size: inherit;  | 
 | 168 | + | 
166 | 169 |   }  | 
167 | 170 | }  | 
168 | 171 | 
 
  | 
 | 
172 | 175 |   aspect-ratio: 1 / 1;  | 
173 | 176 | }  | 
174 | 177 | 
 
  | 
 | 178 | +// Button with Spinner  | 
 | 179 | +// -------------------------------------------------------------------------------  | 
 | 180 | +::slotted(ion-spinner) {  | 
 | 181 | +  --color: currentColor;  | 
 | 182 | +}  | 
 | 183 | + | 
 | 184 | +/* Button containing only a spinner */  | 
 | 185 | +::slotted(ion-spinner[slot="start"]),  | 
 | 186 | +::slotted(ion-spinner[slot="end"]),  | 
 | 187 | +::slotted(ion-spinner[slot="icon-only"]) {  | 
 | 188 | +  height: globals.$ion-space-500;  | 
 | 189 | +  width: globals.$ion-space-500  | 
 | 190 | +}  | 
 | 191 | + | 
 | 192 | +:host(.button-xlarge) ::slotted(ion-spinner){  | 
 | 193 | +  height: globals.$ion-space-600;  | 
 | 194 | +  width: globals.$ion-space-600;  | 
 | 195 | +}  | 
 | 196 | + | 
175 | 197 | // Button Shapes  | 
176 | 198 | // -------------------------------------------------------------------------------  | 
177 | 199 | 
 
  | 
 | 
246 | 268 |   font-size: globals.$ion-font-size-500;  | 
247 | 269 | }  | 
248 | 270 | 
 
  | 
249 |  | -:host(.button-small) ::slotted(ion-icon[slot="start"]) {  | 
 | 271 | +:host(.button-small)  | 
 | 272 | +  ::slotted(ion-icon[slot="start"]),  | 
 | 273 | +  ::slotted(ion-spinner[slot="start"]) {  | 
250 | 274 |   @include globals.margin-horizontal(null, globals.$ion-space-200);  | 
251 | 275 | }  | 
252 | 276 | 
 
  | 
253 |  | -::slotted(ion-icon[slot="start"]) {  | 
 | 277 | +::slotted(ion-icon[slot="start"]),  | 
 | 278 | +::slotted(ion-spinner[slot="start"]) {  | 
254 | 279 |   @include globals.margin-horizontal(null, globals.$ion-space-250);  | 
255 | 280 | }  | 
256 | 281 | 
 
  | 
257 |  | -:host(.button-large) ::slotted(ion-icon[slot="start"]) {  | 
 | 282 | +:host(.button-large)  | 
 | 283 | +  ::slotted(ion-icon[slot="start"]),  | 
 | 284 | +  ::slotted(ion-spinner[slot="start"]) {  | 
258 | 285 |   @include globals.margin-horizontal(null, globals.$ion-space-300);  | 
259 | 286 | }  | 
260 | 287 | 
 
  | 
261 |  | -:host(.button-small) ::slotted(ion-icon[slot="end"]) {  | 
 | 288 | +:host(.button-small)  | 
 | 289 | +  ::slotted(ion-icon[slot="end"]),  | 
 | 290 | +  ::slotted(ion-spinner[slot="end"]) {  | 
262 | 291 |   @include globals.margin-horizontal(globals.$ion-space-200, null);  | 
263 | 292 | }  | 
264 | 293 | 
 
  | 
265 |  | -::slotted(ion-icon[slot="end"]) {  | 
 | 294 | +::slotted(ion-icon[slot="end"]),  | 
 | 295 | +::slotted(ion-spinner[slot="end"]) {  | 
266 | 296 |   @include globals.margin-horizontal(globals.$ion-space-250, null);  | 
267 | 297 | }  | 
268 | 298 | 
 
  | 
269 |  | -:host(.button-large) ::slotted(ion-icon[slot="end"]) {  | 
 | 299 | +:host(.button-large)  | 
 | 300 | +  ::slotted(ion-icon[slot="end"]),  | 
 | 301 | +  ::slotted(ion-spinner[slot="end"]) {  | 
270 | 302 |   @include globals.margin-horizontal(globals.$ion-space-300, null);  | 
271 | 303 | }  | 
0 commit comments