@carbon/styles 1.58.0 → 1.59.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/styles",
3
3
  "description": "Styles for the Carbon Design System",
4
- "version": "1.58.0",
4
+ "version": "1.59.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -68,5 +68,5 @@
68
68
  "scss/**/*.css",
69
69
  "css/**/*.css"
70
70
  ],
71
- "gitHead": "574070ef9eef05d6e1e5899354bbadc77ba5f3ee"
71
+ "gitHead": "5663eaa4c9b6ce2bf4e32d8eeccd2bb20aae4539"
72
72
  }
@@ -385,4 +385,29 @@
385
385
  line-height: inherit;
386
386
  margin-block-start: convert.to-rem(-1px);
387
387
  }
388
+
389
+ // horizontal checkbox group
390
+ .#{$prefix}--checkbox-group--horizontal {
391
+ position: relative;
392
+ display: flex;
393
+ flex-flow: row wrap;
394
+ justify-content: flex-start;
395
+
396
+ .#{$prefix}--form-item {
397
+ flex: none;
398
+ margin-block-end: 0;
399
+
400
+ &:not(:last-of-type) {
401
+ margin-inline-end: $spacing-05;
402
+ }
403
+ }
404
+
405
+ .#{$prefix}--checkbox-label-text {
406
+ padding-inline-start: $spacing-03;
407
+ }
408
+
409
+ .#{$prefix}--label + .#{$prefix}--form-item.#{$prefix}--checkbox-wrapper {
410
+ margin-block-start: 0;
411
+ }
412
+ }
388
413
  }
@@ -232,6 +232,12 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
232
232
  inline-size: $-icon-container-size;
233
233
  inset-block-end: 0;
234
234
  inset-inline-end: 0;
235
+ @if (
236
+ enabled('enable-experimental-tile-contrast') or
237
+ $enable-experimental-tile-contrast
238
+ ) {
239
+ border: 1px solid $border-disabled;
240
+ }
235
241
 
236
242
  &:focus {
237
243
  outline: 2px solid $focus;
@@ -271,6 +277,7 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
271
277
  }
272
278
 
273
279
  .#{$prefix}--tile--expandable.#{$prefix}--tile--expandable--interactive {
280
+ border: none;
274
281
  cursor: default;
275
282
  transition: max-height $duration-moderate-01 motion(standard, productive);
276
283
 
@@ -391,6 +398,24 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
391
398
  inset-inline-end: $spacing-08;
392
399
  }
393
400
 
401
+ .#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio
402
+ > .#{$prefix}--slug {
403
+ inset-inline-end: $spacing-05;
404
+ transition: inset-inline-end $duration-fast-02 motion(standard, productive);
405
+
406
+ @if (
407
+ enabled('enable-v12-tile-radio-icons') or
408
+ $enable-experimental-tile-contrast
409
+ ) {
410
+ inset-inline-end: $spacing-08;
411
+ }
412
+ }
413
+
414
+ .#{$prefix}--tile.#{$prefix}--tile--selectable.#{$prefix}--tile--radio.#{$prefix}--tile--is-selected
415
+ > .#{$prefix}--slug {
416
+ inset-inline-end: $spacing-08;
417
+ }
418
+
394
419
  .#{$prefix}--tile.#{$prefix}--tile--clickable > .#{$prefix}--slug {
395
420
  pointer-events: none;
396
421
  }
@@ -435,7 +460,8 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
435
460
  }
436
461
 
437
462
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable:focus,
438
- .#{$prefix}--tile--slug.#{$prefix}--tile--clickable:focus {
463
+ .#{$prefix}--tile--slug.#{$prefix}--tile--clickable:focus,
464
+ .#{$prefix}--tile-input:focus + .#{$prefix}--tile--slug.#{$prefix}--tile {
439
465
  outline-offset: -1px;
440
466
  }
441
467
 
@@ -463,10 +489,23 @@ $-icon-container-size: calc(#{layout.density('padding-inline')} * 2 + 1rem);
463
489
  .#{$prefix}--tile--slug.#{$prefix}--tile--clickable
464
490
  .#{$prefix}--tile-content {
465
491
  position: relative;
466
- z-index: 1;
467
492
  cursor: pointer;
468
493
  }
469
494
 
495
+ .#{$prefix}--tile--slug.#{$prefix}--tile--selectable
496
+ .#{$prefix}--tile-content,
497
+ .#{$prefix}--tile--slug.#{$prefix}--tile--clickable .#{$prefix}--tile-content,
498
+ .#{$prefix}--tile--slug.#{$prefix}--tile--selectable
499
+ > .#{$prefix}--tile__checkmark,
500
+ .#{$prefix}--tile--slug.#{$prefix}--tile--is-selected .#{$prefix}--slug {
501
+ z-index: 1;
502
+ }
503
+
504
+ .#{$prefix}--tile--slug.#{$prefix}--tile--selectable
505
+ .#{$prefix}--slug:has(> .cds--popover--open) {
506
+ z-index: 2;
507
+ }
508
+
470
509
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable > .#{$prefix}--slug,
471
510
  .#{$prefix}--tile--slug.#{$prefix}--tile--selectable
472
511
  > .#{$prefix}--tile__checkmark {