@danske/sapphire-css 31.1.1 → 31.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -69,7 +69,9 @@
69
69
  /* Hover header*/
70
70
 
71
71
  .sapphire-accordion__item:not(.is-disabled)
72
- .sapphire-accordion__item-header:not(:active):not(.is-active):not(.js-hover):hover,
72
+ .sapphire-accordion__item-header:not(:active):not(.is-active):not(
73
+ .js-hover
74
+ ):hover,
73
75
  .sapphire-accordion__item:not(.is-disabled)
74
76
  .sapphire-accordion__item-header:not(:active):not(.is-active).is-hover {
75
77
  background-color: var(--sapphire-accordion-color-background-header-hover);
@@ -104,7 +106,10 @@
104
106
  }
105
107
 
106
108
  /* Remove closed item's border if header is focused */
107
- .sapphire-accordion__item:not(.sapphire-accordion__item--open):has(.sapphire-accordion__item-header.is-focus, .sapphire-accordion__item-header:not(.js-focus):focus-visible) {
109
+ .sapphire-accordion__item:not(.sapphire-accordion__item--open):has(
110
+ .sapphire-accordion__item-header.is-focus,
111
+ .sapphire-accordion__item-header:not(.js-focus):focus-visible
112
+ ) {
108
113
  border: none;
109
114
  }
110
115
 
@@ -56,6 +56,20 @@
56
56
  cursor: pointer;
57
57
  }
58
58
 
59
+ .sapphire-button__content {
60
+ display: inline-flex;
61
+ align-items: center;
62
+ justify-content: center;
63
+ vertical-align: middle;
64
+ white-space: nowrap;
65
+
66
+ /* In Safari buttons get a 2px border
67
+ * https://github.com/necolas/normalize.css/blob/master/normalize.css#L160-L169
68
+ */
69
+ margin: 0;
70
+ width: 100%;
71
+ }
72
+
59
73
  a.sapphire-button {
60
74
  text-decoration: none;
61
75
  }
@@ -92,6 +106,16 @@ a.sapphire-button {
92
106
  margin-right: var(--sapphire-button-size-spacing-icon-gap);
93
107
  }
94
108
 
109
+ /* Button loading */
110
+ .sapphire-button__spinner {
111
+ position: absolute;
112
+ display: inherit;
113
+ }
114
+
115
+ .sapphire-button--loading .sapphire-button__content {
116
+ visibility: hidden;
117
+ }
118
+
95
119
  /**
96
120
  * Skin rules
97
121
  */
@@ -102,8 +126,12 @@ a.sapphire-button {
102
126
  background-color: var(--sapphire-button-color-background-primary-default);
103
127
  color: var(--sapphire-button-color-content-primary-default);
104
128
  }
105
- .sapphire-button--primary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
106
- .sapphire-button--primary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
129
+ .sapphire-button--primary-fill:not(:disabled):not(.is-disabled):not(
130
+ :active
131
+ ):not(.is-active):not(.js-hover):hover,
132
+ .sapphire-button--primary-fill:not(:disabled):not(.is-disabled):not(
133
+ :active
134
+ ):not(.is-active).is-hover {
107
135
  background-color: var(--sapphire-button-color-background-primary-hover);
108
136
  }
109
137
  .sapphire-button--primary-fill.is-focus,
@@ -112,7 +140,9 @@ a.sapphire-button {
112
140
  }
113
141
  .sapphire-button--primary-fill:not(:disabled):not(.is-disabled).is-active,
114
142
  .sapphire-button--primary-fill:not(:disabled):not(.is-disabled):active,
115
- .sapphire-button--primary-fill:not(:disabled):not(.is-disabled):focus-visible:active {
143
+ .sapphire-button--primary-fill:not(:disabled):not(
144
+ .is-disabled
145
+ ):focus-visible:active {
116
146
  background-color: var(--sapphire-button-color-background-primary-active);
117
147
  }
118
148
 
@@ -124,8 +154,12 @@ a.sapphire-button {
124
154
  color: var(--sapphire-button-color-content-secondary-default);
125
155
  }
126
156
 
127
- .sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
128
- .sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
157
+ .sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):not(
158
+ :active
159
+ ):not(.is-active):not(.js-hover):hover,
160
+ .sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):not(
161
+ :active
162
+ ):not(.is-active).is-hover {
129
163
  background-color: var(--sapphire-button-color-background-secondary-hover);
130
164
  color: var(--sapphire-button-color-content-secondary-hover);
131
165
  }
@@ -137,7 +171,9 @@ a.sapphire-button {
137
171
 
138
172
  .sapphire-button--secondary-fill:not(:disabled):not(.is-disabled).is-active,
139
173
  .sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):active,
140
- .sapphire-button--secondary-fill:not(:disabled):not(.is-disabled):focus-visible:active {
174
+ .sapphire-button--secondary-fill:not(:disabled):not(
175
+ .is-disabled
176
+ ):focus-visible:active {
141
177
  background-color: var(--sapphire-button-color-background-secondary-active);
142
178
  color: var(--sapphire-button-color-content-secondary-active);
143
179
  }
@@ -149,23 +185,35 @@ a.sapphire-button {
149
185
  );
150
186
  }
151
187
 
152
- .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
153
- .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
188
+ .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(
189
+ :disabled
190
+ ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
191
+ .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(
192
+ :disabled
193
+ ):not(.is-disabled):not(:active):not(.is-active).is-hover {
154
194
  background-color: var(
155
195
  --sapphire-button-color-background-secondary-surface-secondary-hover
156
196
  );
157
197
  }
158
198
 
159
199
  .sapphire-button--secondary-fill.sapphire-button--secondary-surface.is-focus,
160
- .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(.js-focus):focus-visible {
200
+ .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(
201
+ .js-focus
202
+ ):focus-visible {
161
203
  background-color: var(
162
204
  --sapphire-button-color-background-secondary-surface-secondary-focus
163
205
  );
164
206
  }
165
207
 
166
- .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
167
- .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):active,
168
- .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
208
+ .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(
209
+ :disabled
210
+ ):not(.is-disabled).is-active,
211
+ .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(
212
+ :disabled
213
+ ):not(.is-disabled):active,
214
+ .sapphire-button--secondary-fill.sapphire-button--secondary-surface:not(
215
+ :disabled
216
+ ):not(.is-disabled):focus-visible:active {
169
217
  background-color: var(
170
218
  --sapphire-button-color-background-secondary-surface-secondary-active
171
219
  );
@@ -180,8 +228,12 @@ a.sapphire-button {
180
228
  color: var(--sapphire-button-color-content-secondary-default);
181
229
  }
182
230
 
183
- .sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
184
- .sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
231
+ .sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled):not(
232
+ :active
233
+ ):not(.is-active):not(.js-hover):hover,
234
+ .sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled):not(
235
+ :active
236
+ ):not(.is-active).is-hover {
185
237
  background-color: var(
186
238
  --sapphire-button-color-background-secondary-ghost-hover
187
239
  );
@@ -197,7 +249,9 @@ a.sapphire-button {
197
249
 
198
250
  .sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled).is-active,
199
251
  .sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled):active,
200
- .sapphire-button--secondary-ghost:not(:disabled):not(.is-disabled):focus-visible:active {
252
+ .sapphire-button--secondary-ghost:not(:disabled):not(
253
+ .is-disabled
254
+ ):focus-visible:active {
201
255
  background-color: var(
202
256
  --sapphire-button-color-background-secondary-ghost-active
203
257
  );
@@ -211,23 +265,35 @@ a.sapphire-button {
211
265
  );
212
266
  }
213
267
 
214
- .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
215
- .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
268
+ .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
269
+ :disabled
270
+ ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
271
+ .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
272
+ :disabled
273
+ ):not(.is-disabled):not(:active):not(.is-active).is-hover {
216
274
  background-color: var(
217
275
  --sapphire-button-color-background-secondary-ghost-surface-secondary-hover
218
276
  );
219
277
  }
220
278
 
221
279
  .sapphire-button--secondary-ghost.sapphire-button--secondary-surface.is-focus,
222
- .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(.js-focus):focus-visible {
280
+ .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
281
+ .js-focus
282
+ ):focus-visible {
223
283
  background-color: var(
224
284
  --sapphire-button-color-background-secondary-ghost-surface-secondary-focus
225
285
  );
226
286
  }
227
287
 
228
- .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
229
- .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):active,
230
- .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
288
+ .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
289
+ :disabled
290
+ ):not(.is-disabled).is-active,
291
+ .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
292
+ :disabled
293
+ ):not(.is-disabled):active,
294
+ .sapphire-button--secondary-ghost.sapphire-button--secondary-surface:not(
295
+ :disabled
296
+ ):not(.is-disabled):focus-visible:active {
231
297
  background-color: var(
232
298
  --sapphire-button-color-background-secondary-ghost-surface-secondary-active
233
299
  );
@@ -241,14 +307,20 @@ a.sapphire-button {
241
307
  padding: 0;
242
308
  }
243
309
 
244
- .sapphire-button--secondary-text:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
245
- .sapphire-button--secondary-text:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
310
+ .sapphire-button--secondary-text:not(:disabled):not(.is-disabled):not(
311
+ :active
312
+ ):not(.is-active):not(.js-hover):hover,
313
+ .sapphire-button--secondary-text:not(:disabled):not(.is-disabled):not(
314
+ :active
315
+ ):not(.is-active).is-hover {
246
316
  color: var(--sapphire-button-color-content-secondary-hover);
247
317
  }
248
318
 
249
319
  .sapphire-button--secondary-text:not(:disabled):not(.is-disabled).is-active,
250
320
  .sapphire-button--secondary-text:not(:disabled):not(.is-disabled):active,
251
- .sapphire-button--secondary-text:not(:disabled):not(.is-disabled):focus-visible:active {
321
+ .sapphire-button--secondary-text:not(:disabled):not(
322
+ .is-disabled
323
+ ):focus-visible:active {
252
324
  color: var(--sapphire-button-color-content-secondary-active);
253
325
  }
254
326
 
@@ -260,8 +332,12 @@ a.sapphire-button {
260
332
  color: var(--sapphire-button-color-content-tertiary-default);
261
333
  }
262
334
 
263
- .sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
264
- .sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
335
+ .sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):not(
336
+ :active
337
+ ):not(.is-active):not(.js-hover):hover,
338
+ .sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):not(
339
+ :active
340
+ ):not(.is-active).is-hover {
265
341
  background-color: var(--sapphire-button-color-background-tertiary-hover);
266
342
  color: var(--sapphire-button-color-content-tertiary-hover);
267
343
  }
@@ -273,7 +349,9 @@ a.sapphire-button {
273
349
 
274
350
  .sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled).is-active,
275
351
  .sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):active,
276
- .sapphire-button--tertiary-fill:not(:disabled):not(.is-disabled):focus-visible:active {
352
+ .sapphire-button--tertiary-fill:not(:disabled):not(
353
+ .is-disabled
354
+ ):focus-visible:active {
277
355
  background-color: var(--sapphire-button-color-background-tertiary-active);
278
356
  color: var(--sapphire-button-color-content-tertiary-active);
279
357
  }
@@ -285,23 +363,35 @@ a.sapphire-button {
285
363
  );
286
364
  }
287
365
 
288
- .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
289
- .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
366
+ .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(
367
+ :disabled
368
+ ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
369
+ .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(
370
+ :disabled
371
+ ):not(.is-disabled):not(:active):not(.is-active).is-hover {
290
372
  background-color: var(
291
373
  --sapphire-button-color-background-tertiary-surface-secondary-hover
292
374
  );
293
375
  }
294
376
 
295
377
  .sapphire-button--tertiary-fill.sapphire-button--secondary-surface.is-focus,
296
- .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(.js-focus):focus-visible {
378
+ .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(
379
+ .js-focus
380
+ ):focus-visible {
297
381
  background-color: var(
298
382
  --sapphire-button-color-background-tertiary-surface-secondary-focus
299
383
  );
300
384
  }
301
385
 
302
- .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
303
- .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):active,
304
- .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
386
+ .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(
387
+ :disabled
388
+ ):not(.is-disabled).is-active,
389
+ .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(
390
+ :disabled
391
+ ):not(.is-disabled):active,
392
+ .sapphire-button--tertiary-fill.sapphire-button--secondary-surface:not(
393
+ :disabled
394
+ ):not(.is-disabled):focus-visible:active {
305
395
  background-color: var(
306
396
  --sapphire-button-color-background-tertiary-surface-secondary-active
307
397
  );
@@ -316,8 +406,12 @@ a.sapphire-button {
316
406
  color: var(--sapphire-button-color-content-tertiary-default);
317
407
  }
318
408
 
319
- .sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
320
- .sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
409
+ .sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(
410
+ :active
411
+ ):not(.is-active):not(.js-hover):hover,
412
+ .sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(
413
+ :active
414
+ ):not(.is-active).is-hover {
321
415
  background-color: var(
322
416
  --sapphire-button-color-background-tertiary-ghost-hover
323
417
  );
@@ -333,7 +427,9 @@ a.sapphire-button {
333
427
 
334
428
  .sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled).is-active,
335
429
  .sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled):active,
336
- .sapphire-button--tertiary-ghost:not(:disabled):not(.is-disabled):focus-visible:active {
430
+ .sapphire-button--tertiary-ghost:not(:disabled):not(
431
+ .is-disabled
432
+ ):focus-visible:active {
337
433
  background-color: var(
338
434
  --sapphire-button-color-background-tertiary-ghost-active
339
435
  );
@@ -347,23 +443,35 @@ a.sapphire-button {
347
443
  );
348
444
  }
349
445
 
350
- .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
351
- .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
446
+ .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
447
+ :disabled
448
+ ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
449
+ .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
450
+ :disabled
451
+ ):not(.is-disabled):not(:active):not(.is-active).is-hover {
352
452
  background-color: var(
353
453
  --sapphire-button-color-background-tertiary-ghost-surface-secondary-hover
354
454
  );
355
455
  }
356
456
 
357
457
  .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface.is-focus,
358
- .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(.js-focus):focus-visible {
458
+ .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
459
+ .js-focus
460
+ ):focus-visible {
359
461
  background-color: var(
360
462
  --sapphire-button-color-background-tertiary-ghost-surface-secondary-focus
361
463
  );
362
464
  }
363
465
 
364
- .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
365
- .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):active,
366
- .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
466
+ .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
467
+ :disabled
468
+ ):not(.is-disabled).is-active,
469
+ .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
470
+ :disabled
471
+ ):not(.is-disabled):active,
472
+ .sapphire-button--tertiary-ghost.sapphire-button--secondary-surface:not(
473
+ :disabled
474
+ ):not(.is-disabled):focus-visible:active {
367
475
  background-color: var(
368
476
  --sapphire-button-color-background-tertiary-ghost-surface-secondary-active
369
477
  );
@@ -377,14 +485,20 @@ a.sapphire-button {
377
485
  padding: 0;
378
486
  }
379
487
 
380
- .sapphire-button--tertiary-text:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
381
- .sapphire-button--tertiary-text:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
488
+ .sapphire-button--tertiary-text:not(:disabled):not(.is-disabled):not(
489
+ :active
490
+ ):not(.is-active):not(.js-hover):hover,
491
+ .sapphire-button--tertiary-text:not(:disabled):not(.is-disabled):not(
492
+ :active
493
+ ):not(.is-active).is-hover {
382
494
  color: var(--sapphire-button-color-content-tertiary-hover);
383
495
  }
384
496
 
385
497
  .sapphire-button--tertiary-text:not(:disabled):not(.is-disabled).is-active,
386
498
  .sapphire-button--tertiary-text:not(:disabled):not(.is-disabled):active,
387
- .sapphire-button--tertiary-text:not(:disabled):not(.is-disabled):focus-visible:active {
499
+ .sapphire-button--tertiary-text:not(:disabled):not(
500
+ .is-disabled
501
+ ):focus-visible:active {
388
502
  color: var(--sapphire-button-color-content-tertiary-active);
389
503
  }
390
504
 
@@ -396,8 +510,12 @@ a.sapphire-button {
396
510
  color: var(--sapphire-button-color-content-danger-default);
397
511
  }
398
512
 
399
- .sapphire-button--danger-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
400
- .sapphire-button--danger-fill:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
513
+ .sapphire-button--danger-fill:not(:disabled):not(.is-disabled):not(:active):not(
514
+ .is-active
515
+ ):not(.js-hover):hover,
516
+ .sapphire-button--danger-fill:not(:disabled):not(.is-disabled):not(:active):not(
517
+ .is-active
518
+ ).is-hover {
401
519
  background-color: var(--sapphire-button-color-background-danger-hover);
402
520
  color: var(--sapphire-button-color-content-danger-hover);
403
521
  }
@@ -409,7 +527,9 @@ a.sapphire-button {
409
527
 
410
528
  .sapphire-button--danger-fill:not(:disabled):not(.is-disabled).is-active,
411
529
  .sapphire-button--danger-fill:not(:disabled):not(.is-disabled):active,
412
- .sapphire-button--danger-fill:not(:disabled):not(.is-disabled):focus-visible:active {
530
+ .sapphire-button--danger-fill:not(:disabled):not(
531
+ .is-disabled
532
+ ):focus-visible:active {
413
533
  background-color: var(--sapphire-button-color-background-danger-active);
414
534
  color: var(--sapphire-button-color-content-danger-active);
415
535
  }
@@ -421,23 +541,35 @@ a.sapphire-button {
421
541
  );
422
542
  }
423
543
 
424
- .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
425
- .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
544
+ .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
545
+ :disabled
546
+ ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
547
+ .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
548
+ :disabled
549
+ ):not(.is-disabled):not(:active):not(.is-active).is-hover {
426
550
  background-color: var(
427
551
  --sapphire-button-color-background-danger-surface-secondary-hover
428
552
  );
429
553
  }
430
554
 
431
555
  .sapphire-button--danger-fill.sapphire-button--secondary-surface.is-focus,
432
- .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(.js-focus):focus-visible {
556
+ .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
557
+ .js-focus
558
+ ):focus-visible {
433
559
  background-color: var(
434
560
  --sapphire-button-color-background-danger-surface-secondary-focus
435
561
  );
436
562
  }
437
563
 
438
- .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
439
- .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):active,
440
- .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
564
+ .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
565
+ :disabled
566
+ ):not(.is-disabled).is-active,
567
+ .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
568
+ :disabled
569
+ ):not(.is-disabled):active,
570
+ .sapphire-button--danger-fill.sapphire-button--secondary-surface:not(
571
+ :disabled
572
+ ):not(.is-disabled):focus-visible:active {
441
573
  background-color: var(
442
574
  --sapphire-button-color-background-danger-surface-secondary-active
443
575
  );
@@ -452,8 +584,12 @@ a.sapphire-button {
452
584
  color: var(--sapphire-button-color-content-danger-default);
453
585
  }
454
586
 
455
- .sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
456
- .sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
587
+ .sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):not(
588
+ :active
589
+ ):not(.is-active):not(.js-hover):hover,
590
+ .sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):not(
591
+ :active
592
+ ):not(.is-active).is-hover {
457
593
  background-color: var(--sapphire-button-color-background-danger-ghost-hover);
458
594
  color: var(--sapphire-button-color-content-danger-hover);
459
595
  }
@@ -465,7 +601,9 @@ a.sapphire-button {
465
601
 
466
602
  .sapphire-button--danger-ghost:not(:disabled):not(.is-disabled).is-active,
467
603
  .sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):active,
468
- .sapphire-button--danger-ghost:not(:disabled):not(.is-disabled):focus-visible:active {
604
+ .sapphire-button--danger-ghost:not(:disabled):not(
605
+ .is-disabled
606
+ ):focus-visible:active {
469
607
  background-color: var(--sapphire-button-color-background-danger-ghost-active);
470
608
  color: var(--sapphire-button-color-content-danger-active);
471
609
  }
@@ -477,23 +615,35 @@ a.sapphire-button {
477
615
  );
478
616
  }
479
617
 
480
- .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
481
- .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
618
+ .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
619
+ :disabled
620
+ ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
621
+ .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
622
+ :disabled
623
+ ):not(.is-disabled):not(:active):not(.is-active).is-hover {
482
624
  background-color: var(
483
625
  --sapphire-button-color-background-danger-ghost-surface-secondary-hover
484
626
  );
485
627
  }
486
628
 
487
629
  .sapphire-button--danger-ghost.sapphire-button--secondary-surface.is-focus,
488
- .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(.js-focus):focus-visible {
630
+ .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
631
+ .js-focus
632
+ ):focus-visible {
489
633
  background-color: var(
490
634
  --sapphire-button-color-background-danger-ghost-surface-secondary-focus
491
635
  );
492
636
  }
493
637
 
494
- .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled).is-active,
495
- .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):active,
496
- .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(:disabled):not(.is-disabled):focus-visible:active {
638
+ .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
639
+ :disabled
640
+ ):not(.is-disabled).is-active,
641
+ .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
642
+ :disabled
643
+ ):not(.is-disabled):active,
644
+ .sapphire-button--danger-ghost.sapphire-button--secondary-surface:not(
645
+ :disabled
646
+ ):not(.is-disabled):focus-visible:active {
497
647
  background-color: var(
498
648
  --sapphire-button-color-background-danger-ghost-surface-secondary-active
499
649
  );
@@ -507,14 +657,20 @@ a.sapphire-button {
507
657
  padding: 0;
508
658
  }
509
659
 
510
- .sapphire-button--danger-text:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
511
- .sapphire-button--danger-text:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
660
+ .sapphire-button--danger-text:not(:disabled):not(.is-disabled):not(:active):not(
661
+ .is-active
662
+ ):not(.js-hover):hover,
663
+ .sapphire-button--danger-text:not(:disabled):not(.is-disabled):not(:active):not(
664
+ .is-active
665
+ ).is-hover {
512
666
  color: var(--sapphire-button-color-content-danger-hover);
513
667
  }
514
668
 
515
669
  .sapphire-button--danger-text:not(:disabled):not(.is-disabled).is-active,
516
670
  .sapphire-button--danger-text:not(:disabled):not(.is-disabled):active,
517
- .sapphire-button--danger-text:not(:disabled):not(.is-disabled):focus-visible:active {
671
+ .sapphire-button--danger-text:not(:disabled):not(
672
+ .is-disabled
673
+ ):focus-visible:active {
518
674
  color: var(--sapphire-button-color-content-danger-active);
519
675
  }
520
676
 
@@ -525,8 +681,12 @@ a.sapphire-button {
525
681
  background-color: var(--sapphire-button-color-background-selected-default);
526
682
  color: var(--sapphire-button-color-content-selected-default);
527
683
  }
528
- .sapphire-button--selected:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
529
- .sapphire-button--selected:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
684
+ .sapphire-button--selected:not(:disabled):not(.is-disabled):not(:active):not(
685
+ .is-active
686
+ ):not(.js-hover):hover,
687
+ .sapphire-button--selected:not(:disabled):not(.is-disabled):not(:active):not(
688
+ .is-active
689
+ ).is-hover {
530
690
  background-color: var(--sapphire-button-color-background-selected-hover);
531
691
  }
532
692
  .sapphire-button--selected.is-focus,
@@ -535,7 +695,9 @@ a.sapphire-button {
535
695
  }
536
696
  .sapphire-button--selected:not(:disabled):not(.is-disabled).is-active,
537
697
  .sapphire-button--selected:not(:disabled):not(.is-disabled):active,
538
- .sapphire-button--selected:not(:disabled):not(.is-disabled):focus-visible:active {
698
+ .sapphire-button--selected:not(:disabled):not(
699
+ .is-disabled
700
+ ):focus-visible:active {
539
701
  background-color: var(--sapphire-button-color-background-selected-active);
540
702
  color: var(--sapphire-button-color-content-selected-active);
541
703
  }
@@ -544,8 +706,12 @@ a.sapphire-button {
544
706
  background-color: var(--sapphire-button-color-background-unselected-default);
545
707
  color: var(--sapphire-button-color-content-unselected-default);
546
708
  }
547
- .sapphire-button--unselected:not(:disabled):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
548
- .sapphire-button--unselected:not(:disabled):not(.is-disabled):not(:active):not(.is-active).is-hover {
709
+ .sapphire-button--unselected:not(:disabled):not(.is-disabled):not(:active):not(
710
+ .is-active
711
+ ):not(.js-hover):hover,
712
+ .sapphire-button--unselected:not(:disabled):not(.is-disabled):not(:active):not(
713
+ .is-active
714
+ ).is-hover {
549
715
  background-color: var(--sapphire-button-color-background-unselected-hover);
550
716
  }
551
717
  .sapphire-button--unselected.is-focus,
@@ -554,7 +720,9 @@ a.sapphire-button {
554
720
  }
555
721
  .sapphire-button--unselected:not(:disabled):not(.is-disabled).is-active,
556
722
  .sapphire-button--unselected:not(:disabled):not(.is-disabled):active,
557
- .sapphire-button--unselected:not(:disabled):not(.is-disabled):focus-visible:active {
723
+ .sapphire-button--unselected:not(:disabled):not(
724
+ .is-disabled
725
+ ):focus-visible:active {
558
726
  background-color: var(--sapphire-button-color-background-unselected-active);
559
727
  color: var(--sapphire-button-color-content-unselected-active);
560
728
  }
@@ -1,11 +1,14 @@
1
1
  declare const styles: {
2
2
  readonly "sapphire-button": string;
3
+ readonly "sapphire-button__content": string;
3
4
  readonly "is-disabled": string;
4
5
  readonly "is-focus": string;
5
6
  readonly "js-focus": string;
6
7
  readonly "sapphire-button--with-left-icon": string;
7
8
  readonly "sapphire-button--with-right-icon": string;
8
9
  readonly "sapphire-button__icon": string;
10
+ readonly "sapphire-button__spinner": string;
11
+ readonly "sapphire-button--loading": string;
9
12
  readonly "sapphire-button--primary-fill": string;
10
13
  readonly "is-active": string;
11
14
  readonly "js-hover": string;
@@ -34,7 +34,9 @@ Added !important because of Angular implementation, and how the extra attribute
34
34
  flex-wrap: nowrap;
35
35
  }
36
36
 
37
- .sapphire-button-group--stretch.sapphire-button-group--stretch-auto-vertical.sapphire-button-group:has(> *:nth-child(3)) {
37
+ .sapphire-button-group--stretch.sapphire-button-group--stretch-auto-vertical.sapphire-button-group:has(
38
+ > *:nth-child(3)
39
+ ) {
38
40
  flex-direction: column-reverse;
39
41
  }
40
42