@carbon/styles 1.111.0 → 1.112.0

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.
@@ -398,18 +398,28 @@
398
398
  color: $link-inverse;
399
399
  }
400
400
 
401
- .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:active,
402
- .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:hover {
401
+ .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:active {
403
402
  background-color: $background-inverse-hover;
404
403
  }
405
404
 
406
- .#{$prefix}--actionable-notification--low-contrast
407
- .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:active,
408
- .#{$prefix}--actionable-notification--low-contrast
405
+ @media (any-hover: hover) {
409
406
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:hover {
407
+ background-color: $background-inverse-hover;
408
+ }
409
+ }
410
+
411
+ .#{$prefix}--actionable-notification--low-contrast
412
+ .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:active {
410
413
  background-color: $notification-action-hover;
411
414
  }
412
415
 
416
+ @media (any-hover: hover) {
417
+ .#{$prefix}--actionable-notification--low-contrast
418
+ .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:hover {
419
+ background-color: $notification-action-hover;
420
+ }
421
+ }
422
+
413
423
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost:focus {
414
424
  border-color: transparent;
415
425
  box-shadow: none;
@@ -460,11 +470,13 @@
460
470
  );
461
471
  }
462
472
 
463
- .#{$prefix}--actionable-notification:not(
464
- .#{$prefix}--actionable-notification--low-contrast
465
- )
466
- .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:hover {
467
- color: $notification-action-tertiary-inverse-text;
473
+ @media (any-hover: hover) {
474
+ .#{$prefix}--actionable-notification:not(
475
+ .#{$prefix}--actionable-notification--low-contrast
476
+ )
477
+ .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:hover {
478
+ color: $notification-action-tertiary-inverse-text;
479
+ }
468
480
  }
469
481
 
470
482
  .#{$prefix}--actionable-notification:not(
@@ -492,10 +504,6 @@
492
504
  .#{$prefix}--actionable-notification--low-contrast
493
505
  )
494
506
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:disabled,
495
- .#{$prefix}--actionable-notification:not(
496
- .#{$prefix}--actionable-notification--low-contrast
497
- )
498
- .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:hover:disabled,
499
507
  .#{$prefix}--actionable-notification:not(
500
508
  .#{$prefix}--actionable-notification--low-contrast
501
509
  )
@@ -504,10 +512,6 @@
504
512
  .#{$prefix}--actionable-notification--low-contrast
505
513
  )
506
514
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary.#{$prefix}--btn--disabled,
507
- .#{$prefix}--actionable-notification:not(
508
- .#{$prefix}--actionable-notification--low-contrast
509
- )
510
- .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary.#{$prefix}--btn--disabled:hover,
511
515
  .#{$prefix}--actionable-notification:not(
512
516
  .#{$prefix}--actionable-notification--low-contrast
513
517
  )
@@ -517,6 +521,21 @@
517
521
  outline: none;
518
522
  }
519
523
 
524
+ @media (any-hover: hover) {
525
+ .#{$prefix}--actionable-notification:not(
526
+ .#{$prefix}--actionable-notification--low-contrast
527
+ )
528
+ .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:hover:disabled,
529
+ .#{$prefix}--actionable-notification:not(
530
+ .#{$prefix}--actionable-notification--low-contrast
531
+ )
532
+ .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary.#{$prefix}--btn--disabled:hover {
533
+ background: transparent;
534
+ color: $notification-action-tertiary-inverse-text-on-color-disabled;
535
+ outline: none;
536
+ }
537
+ }
538
+
520
539
  .#{$prefix}--actionable-notification--hide-close-button
521
540
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary {
522
541
  margin-inline-end: $spacing-03;
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2016, 2023
2
+ // Copyright IBM Corp. 2016, 2026
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -316,18 +316,28 @@
316
316
  color: $link-inverse;
317
317
  }
318
318
 
319
- .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:active,
320
- .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:hover {
319
+ .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:active {
321
320
  background-color: $background-inverse-hover;
322
321
  }
323
322
 
324
- .#{$prefix}--inline-notification--low-contrast
325
- .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:active,
326
- .#{$prefix}--inline-notification--low-contrast
323
+ @media (any-hover: hover) {
327
324
  .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:hover {
325
+ background-color: $background-inverse-hover;
326
+ }
327
+ }
328
+
329
+ .#{$prefix}--inline-notification--low-contrast
330
+ .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:active {
328
331
  background-color: $notification-action-hover;
329
332
  }
330
333
 
334
+ @media (any-hover: hover) {
335
+ .#{$prefix}--inline-notification--low-contrast
336
+ .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:hover {
337
+ background-color: $notification-action-hover;
338
+ }
339
+ }
340
+
331
341
  .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost:focus {
332
342
  border-color: transparent;
333
343
  box-shadow: none;
@@ -105,10 +105,12 @@ $progress-indicator-bar-width: 1px inset transparent !default;
105
105
  }
106
106
  }
107
107
 
108
- .#{$prefix}--progress-label:hover {
109
- box-shadow: 0 convert.to-rem(1px) $link-primary-hover;
110
- color: $link-primary-hover;
111
- cursor: pointer;
108
+ @media (any-hover: hover) {
109
+ .#{$prefix}--progress-label:hover {
110
+ box-shadow: 0 convert.to-rem(1px) $link-primary-hover;
111
+ color: $link-primary-hover;
112
+ cursor: pointer;
113
+ }
112
114
  }
113
115
 
114
116
  .#{$prefix}--progress--space-equal .#{$prefix}--progress-label {
@@ -228,18 +230,20 @@ $progress-indicator-bar-width: 1px inset transparent !default;
228
230
  outline: none;
229
231
  }
230
232
 
231
- .#{$prefix}--progress-step-button--unclickable
232
- .#{$prefix}--progress-label:hover {
233
- box-shadow: none;
234
- color: $text-primary;
235
- cursor: default;
236
- }
233
+ @media (any-hover: hover) {
234
+ .#{$prefix}--progress-step-button--unclickable
235
+ .#{$prefix}--progress-label:hover {
236
+ box-shadow: none;
237
+ color: $text-primary;
238
+ cursor: default;
239
+ }
237
240
 
238
- .#{$prefix}--progress-step-button--unclickable
239
- .#{$prefix}--tooltip__label:hover {
240
- box-shadow: 0 convert.to-rem(1px) $link-primary;
241
- color: $link-primary;
242
- cursor: pointer;
241
+ .#{$prefix}--progress-step-button--unclickable
242
+ .#{$prefix}--tooltip__label:hover {
243
+ box-shadow: 0 convert.to-rem(1px) $link-primary;
244
+ color: $link-primary;
245
+ cursor: pointer;
246
+ }
243
247
  }
244
248
 
245
249
  //DISABLED STYLING
@@ -252,13 +256,20 @@ $progress-indicator-bar-width: 1px inset transparent !default;
252
256
  fill: $icon-disabled;
253
257
  }
254
258
 
255
- .#{$prefix}--progress-label,
256
- .#{$prefix}--progress-label:hover {
259
+ .#{$prefix}--progress-label {
257
260
  box-shadow: none;
258
261
  color: $text-disabled;
259
262
  cursor: not-allowed;
260
263
  }
261
264
 
265
+ @media (any-hover: hover) {
266
+ .#{$prefix}--progress-label:hover {
267
+ box-shadow: none;
268
+ color: $text-disabled;
269
+ cursor: not-allowed;
270
+ }
271
+ }
272
+
262
273
  .#{$prefix}--progress-line {
263
274
  cursor: not-allowed;
264
275
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2023, 2024
2
+ // Copyright IBM Corp. 2023, 2026
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -122,30 +122,32 @@ $sizes: (
122
122
  box-shadow: inset 0 0 0 1px $focus;
123
123
  }
124
124
 
125
- .#{$prefix}--ai-label .#{$prefix}--ai-label__button:hover,
126
- .#{$prefix}--slug .#{$prefix}--slug__button:hover {
127
- background: $border-inverse;
128
- color: $text-inverse;
129
- }
125
+ @media (any-hover: hover) {
126
+ .#{$prefix}--ai-label .#{$prefix}--ai-label__button:hover,
127
+ .#{$prefix}--slug .#{$prefix}--slug__button:hover {
128
+ background: $border-inverse;
129
+ color: $text-inverse;
130
+ }
130
131
 
131
- .#{$prefix}--ai-label .#{$prefix}--ai-label__button:hover:active,
132
- .#{$prefix}--slug .#{$prefix}--slug__button:hover:active {
133
- background: $border-inverse;
134
- box-shadow:
135
- inset 0 0 0 1px $focus,
136
- inset 0 0 0 2px $focus-inset;
137
- color: $text-inverse;
138
- }
132
+ .#{$prefix}--ai-label .#{$prefix}--ai-label__button:hover:active,
133
+ .#{$prefix}--slug .#{$prefix}--slug__button:hover:active {
134
+ background: $border-inverse;
135
+ box-shadow:
136
+ inset 0 0 0 1px $focus,
137
+ inset 0 0 0 2px $focus-inset;
138
+ color: $text-inverse;
139
+ }
139
140
 
140
- .#{$prefix}--ai-label
141
- .#{$prefix}--ai-label__button.#{$prefix}--ai-label__button--mini:hover:active,
142
- .#{$prefix}--ai-label
143
- .#{$prefix}--ai-label__button.#{$prefix}--ai-label__button--2xs:hover:active,
144
- .#{$prefix}--slug
145
- .#{$prefix}--slug__button.#{$prefix}--slug__button--mini:hover:active,
146
- .#{$prefix}--slug
147
- .#{$prefix}--slug__button.#{$prefix}--slug__button--2xs:hover:active {
148
- box-shadow: inset 0 0 0 1px $focus-inset;
141
+ .#{$prefix}--ai-label
142
+ .#{$prefix}--ai-label__button.#{$prefix}--ai-label__button--mini:hover:active,
143
+ .#{$prefix}--ai-label
144
+ .#{$prefix}--ai-label__button.#{$prefix}--ai-label__button--2xs:hover:active,
145
+ .#{$prefix}--slug
146
+ .#{$prefix}--slug__button.#{$prefix}--slug__button--mini:hover:active,
147
+ .#{$prefix}--slug
148
+ .#{$prefix}--slug__button.#{$prefix}--slug__button--2xs:hover:active {
149
+ box-shadow: inset 0 0 0 1px $focus-inset;
150
+ }
149
151
  }
150
152
 
151
153
  .#{$prefix}--ai-label__text,
@@ -178,28 +180,30 @@ $sizes: (
178
180
  box-shadow: none;
179
181
  }
180
182
 
181
- .#{$prefix}--ai-label .#{$prefix}--ai-label__button--inline:hover,
182
- .#{$prefix}--ai-label .#{$prefix}--ai-label__button--inline:hover:active,
183
- .#{$prefix}--slug .#{$prefix}--slug__button--inline:hover,
184
- .#{$prefix}--slug .#{$prefix}--slug__button--inline:hover:active {
185
- border-color: $icon-secondary;
186
- background: transparent;
187
- box-shadow: none;
188
- color: $text-secondary;
189
- }
183
+ @media (any-hover: hover) {
184
+ .#{$prefix}--ai-label .#{$prefix}--ai-label__button--inline:hover,
185
+ .#{$prefix}--ai-label .#{$prefix}--ai-label__button--inline:hover:active,
186
+ .#{$prefix}--slug .#{$prefix}--slug__button--inline:hover,
187
+ .#{$prefix}--slug .#{$prefix}--slug__button--inline:hover:active {
188
+ border-color: $icon-secondary;
189
+ background: transparent;
190
+ box-shadow: none;
191
+ color: $text-secondary;
192
+ }
190
193
 
191
- .#{$prefix}--ai-label .#{$prefix}--ai-label__button--inline:focus:hover,
192
- .#{$prefix}--slug .#{$prefix}--slug__button--inline:focus:hover {
193
- border-color: $focus;
194
- }
194
+ .#{$prefix}--ai-label .#{$prefix}--ai-label__button--inline:focus:hover,
195
+ .#{$prefix}--slug .#{$prefix}--slug__button--inline:focus:hover {
196
+ border-color: $focus;
197
+ }
195
198
 
196
- .#{$prefix}--ai-label
197
- .#{$prefix}--ai-label__button--inline:hover
198
- .#{$prefix}--ai-label__text::before,
199
- .#{$prefix}--slug
200
- .#{$prefix}--slug__button--inline:hover
201
- .#{$prefix}--slug__text::before {
202
- background: $icon-secondary;
199
+ .#{$prefix}--ai-label
200
+ .#{$prefix}--ai-label__button--inline:hover
201
+ .#{$prefix}--ai-label__text::before,
202
+ .#{$prefix}--slug
203
+ .#{$prefix}--slug__button--inline:hover
204
+ .#{$prefix}--slug__text::before {
205
+ background: $icon-secondary;
206
+ }
203
207
  }
204
208
 
205
209
  .#{$prefix}--ai-label__button--inline .#{$prefix}--ai-label__text,
@@ -304,13 +308,19 @@ $sizes: (
304
308
 
305
309
  .#{$prefix}--ai-label
306
310
  .#{$prefix}--ai-label__button--inline-with-content:focus,
307
- .#{$prefix}--ai-label
308
- .#{$prefix}--ai-label__button--inline-with-content:hover:focus,
309
- .#{$prefix}--slug .#{$prefix}--slug__button--inline-with-content:focus,
310
- .#{$prefix}--slug .#{$prefix}--slug__button--inline-with-content:hover:focus {
311
+ .#{$prefix}--slug .#{$prefix}--slug__button--inline-with-content:focus {
311
312
  box-shadow: inset 0 0 0 1px $focus;
312
313
  }
313
314
 
315
+ @media (any-hover: hover) {
316
+ .#{$prefix}--ai-label
317
+ .#{$prefix}--ai-label__button--inline-with-content:hover:focus,
318
+ .#{$prefix}--slug
319
+ .#{$prefix}--slug__button--inline-with-content:hover:focus {
320
+ box-shadow: inset 0 0 0 1px $focus;
321
+ }
322
+ }
323
+
314
324
  // Slug callout styles
315
325
  .#{$prefix}--ai-label .#{$prefix}--ai-label-content,
316
326
  .#{$prefix}--slug .#{$prefix}--slug-content {