@carbon/styles 1.32.0-rc.0 → 1.33.0-rc.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.32.0-rc.0",
4
+ "version": "1.33.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -31,14 +31,19 @@
31
31
  "peerDependencies": {
32
32
  "sass": "^1.33.0"
33
33
  },
34
+ "peerDependenciesMeta": {
35
+ "sass": {
36
+ "optional": true
37
+ }
38
+ },
34
39
  "dependencies": {
35
- "@carbon/colors": "^11.16.0",
40
+ "@carbon/colors": "^11.17.0-rc.0",
36
41
  "@carbon/feature-flags": "^0.15.0",
37
- "@carbon/grid": "^11.15.0",
38
- "@carbon/layout": "^11.15.0",
39
- "@carbon/motion": "^11.12.0",
40
- "@carbon/themes": "^11.20.0",
41
- "@carbon/type": "^11.19.0",
42
+ "@carbon/grid": "^11.16.0-rc.0",
43
+ "@carbon/layout": "^11.16.0-rc.0",
44
+ "@carbon/motion": "^11.13.0-rc.0",
45
+ "@carbon/themes": "^11.21.0-rc.0",
46
+ "@carbon/type": "^11.20.0-rc.0",
42
47
  "@ibm/plex": "6.0.0-next.6"
43
48
  },
44
49
  "devDependencies": {
@@ -59,5 +64,5 @@
59
64
  "scss/**/*.css",
60
65
  "css/**/*.css"
61
66
  ],
62
- "gitHead": "fe40fbf428231bd35f6bc8cc871ea09c7afa5051"
67
+ "gitHead": "b9e28c4e35eeddf4ecc3261630a8f3fecc7012d4"
63
68
  }
@@ -65,8 +65,8 @@
65
65
 
66
66
  //counter
67
67
  .#{$prefix}--text-area--fluid div.#{$prefix}--label {
68
- right: 1rem;
69
- left: initial;
68
+ display: flex;
69
+ justify-content: flex-end;
70
70
  }
71
71
 
72
72
  .#{$prefix}--text-area--fluid .#{$prefix}--text-area {
@@ -103,7 +103,15 @@ $list-box-menu-width: rem(300px);
103
103
  }
104
104
 
105
105
  .#{$prefix}--list-box--expanded {
106
- border-bottom-color: $border-subtle;
106
+ border-bottom-color: $border-subtle-01;
107
+ }
108
+
109
+ .#{$prefix}--layer-two .#{$prefix}--list-box--expanded {
110
+ border-bottom-color: $border-subtle-02;
111
+ }
112
+
113
+ .#{$prefix}--layer-three .#{$prefix}--list-box--expanded {
114
+ border-bottom-color: $border-subtle-03;
107
115
  }
108
116
 
109
117
  .#{$prefix}--list-box--expanded:hover {
@@ -502,6 +510,7 @@ $list-box-menu-width: rem(300px);
502
510
  z-index: z('dropdown');
503
511
  right: 0;
504
512
  left: 0;
513
+ display: none;
505
514
  width: $list-box-width;
506
515
  background-color: $layer;
507
516
  overflow-y: auto;
@@ -513,11 +522,12 @@ $list-box-menu-width: rem(300px);
513
522
  }
514
523
  }
515
524
 
516
- .#{$prefix}--list-box
517
- .#{$prefix}--list-box__field[aria-expanded='false']
518
- + .#{$prefix}--list-box__menu {
519
- display: none;
520
- max-height: 0;
525
+ .#{$prefix}--list-box .#{$prefix}--list-box__field[aria-expanded='false'] {
526
+ .#{$prefix}--list-box__menu {
527
+ display: none;
528
+ max-height: 0;
529
+ visibility: hidden;
530
+ }
521
531
  }
522
532
 
523
533
  .#{$prefix}--list-box--expanded .#{$prefix}--list-box__menu {
@@ -582,7 +592,19 @@ $list-box-menu-width: rem(300px);
582
592
 
583
593
  .#{$prefix}--list-box--disabled
584
594
  .#{$prefix}--list-box__menu-item__option:hover {
585
- border-top-color: $border-subtle;
595
+ border-top-color: $border-subtle-01;
596
+ }
597
+
598
+ .#{$prefix}--layer-two
599
+ .#{$prefix}--list-box--disabled
600
+ .#{$prefix}--list-box__menu-item__option:hover {
601
+ border-top-color: $border-subtle-02;
602
+ }
603
+
604
+ .#{$prefix}--layer-three
605
+ .#{$prefix}--list-box--disabled
606
+ .#{$prefix}--list-box__menu-item__option:hover {
607
+ border-top-color: $border-subtle-03;
586
608
  }
587
609
 
588
610
  .#{$prefix}--list-box__menu-item:first-of-type
@@ -595,17 +617,35 @@ $list-box-menu-width: rem(300px);
595
617
  color: $text-primary;
596
618
  }
597
619
 
598
- .#{$prefix}--list-box__menu-item:hover
620
+ .#{$prefix}--list-box--disabled
621
+ .#{$prefix}--list-box__menu-item:hover
599
622
  + .#{$prefix}--list-box__menu-item
600
623
  .#{$prefix}--list-box__menu-item__option {
601
- border-top-color: transparent;
624
+ border-top-color: $border-subtle-01;
602
625
  }
603
626
 
604
- .#{$prefix}--list-box--disabled
627
+ .#{$prefix}--layer-two
628
+ .#{$prefix}--list-box--disabled
605
629
  .#{$prefix}--list-box__menu-item:hover
606
630
  + .#{$prefix}--list-box__menu-item
607
631
  .#{$prefix}--list-box__menu-item__option {
608
- border-top-color: $border-subtle;
632
+ border-top-color: $border-subtle-02;
633
+ }
634
+
635
+ .#{$prefix}--layer-three
636
+ .#{$prefix}--list-box--disabled
637
+ .#{$prefix}--list-box__menu-item:hover
638
+ + .#{$prefix}--list-box__menu-item
639
+ .#{$prefix}--list-box__menu-item__option {
640
+ border-top-color: $border-subtle-03;
641
+ }
642
+
643
+ .#{$prefix}--layer-two .#{$prefix}--list-box__menu-item__option {
644
+ border-top-color: $border-subtle-02;
645
+ }
646
+
647
+ .#{$prefix}--layer-three .#{$prefix}--list-box__menu-item__option {
648
+ border-top-color: $border-subtle-03;
609
649
  }
610
650
 
611
651
  .#{$prefix}--list-box__menu-item__option {
@@ -617,7 +657,7 @@ $list-box-menu-width: rem(300px);
617
657
  padding: rem(11px) 0;
618
658
  padding-right: $spacing-06;
619
659
  border-top: 1px solid transparent;
620
- border-top-color: $border-subtle;
660
+ border-top-color: $border-subtle-01;
621
661
  border-bottom: 1px solid transparent;
622
662
  margin: 0 $spacing-05;
623
663
  color: $text-secondary;
@@ -682,14 +722,40 @@ $list-box-menu-width: rem(300px);
682
722
  }
683
723
 
684
724
  .#{$prefix}--list-box__menu-item[disabled]
725
+ .#{$prefix}--list-box__menu-item__option,
726
+ .#{$prefix}--list-box__menu-item[disabled]:hover
727
+ + .#{$prefix}--list-box__menu-item
685
728
  .#{$prefix}--list-box__menu-item__option {
686
- border-top-color: $border-subtle;
729
+ border-top-color: $border-subtle-01;
687
730
  }
688
731
 
689
- .#{$prefix}--list-box__menu-item[disabled]:hover
732
+ .#{$prefix}--layer-two
733
+ .#{$prefix}--list-box__menu-item[disabled]
734
+ .#{$prefix}--list-box__menu-item__option,
735
+ .#{$prefix}--layer-two
736
+ .#{$prefix}--list-box__menu-item[disabled]:hover
690
737
  + .#{$prefix}--list-box__menu-item
691
738
  .#{$prefix}--list-box__menu-item__option {
692
- border-top-color: $border-subtle;
739
+ border-top-color: $border-subtle-02;
740
+ }
741
+
742
+ .#{$prefix}--layer-three
743
+ .#{$prefix}--list-box__menu-item[disabled]
744
+ .#{$prefix}--list-box__menu-item__option,
745
+ .#{$prefix}--layer-three
746
+ .#{$prefix}--list-box__menu-item[disabled]:hover
747
+ + .#{$prefix}--list-box__menu-item
748
+ .#{$prefix}--list-box__menu-item__option {
749
+ border-top-color: $border-subtle-03;
750
+ }
751
+
752
+ .#{$prefix}--list-box__menu-item--active
753
+ + .#{$prefix}--list-box__menu-item[disabled]
754
+ .#{$prefix}--list-box__menu-item__option,
755
+ .#{$prefix}--list-box__menu-item:hover
756
+ + .#{$prefix}--list-box__menu-item
757
+ .#{$prefix}--list-box__menu-item__option {
758
+ border-top-color: transparent;
693
759
  }
694
760
 
695
761
  .#{$prefix}--list-box.#{$prefix}--list-box--inline
@@ -704,8 +770,8 @@ $list-box-menu-width: rem(300px);
704
770
  }
705
771
 
706
772
  .#{$prefix}--list-box__menu-item--highlighted {
707
- border-color: transparent;
708
- background-color: $layer-selected;
773
+ @include focus-outline('outline');
774
+
709
775
  color: $text-primary;
710
776
  }
711
777
 
@@ -72,6 +72,20 @@
72
72
  background-color: $border-subtle-02;
73
73
  }
74
74
 
75
+ .#{$prefix}--list-box__menu-item__option {
76
+ border-top-color: $border-subtle-02;
77
+ }
78
+
79
+ .#{$prefix}--list-box__menu-item:hover
80
+ .#{$prefix}--list-box__menu-item__option {
81
+ border-top-color: $layer-hover;
82
+ }
83
+
84
+ .#{$prefix}--list-box__menu-item--active:hover
85
+ .#{$prefix}--list-box__menu-item__option {
86
+ border-top-color: $layer-selected-hover;
87
+ }
88
+
75
89
  // Fluid inputs
76
90
  .#{$prefix}--text-input--fluid .#{$prefix}--text-input,
77
91
  .#{$prefix}--text-area--fluid .#{$prefix}--text-area__wrapper,
@@ -609,3 +609,25 @@ $icon-tab-size: custom-property.get-var('icon-tab-size', rem(40px));
609
609
  @include high-contrast-mode('disabled');
610
610
  }
611
611
  }
612
+
613
+ //-----------------------------
614
+ // Grid contained tabs
615
+ //-----------------------------
616
+
617
+ .#{$prefix}--tabs.#{$prefix}--tabs--contained.#{$prefix}--tabs--full-width
618
+ .#{$prefix}--tab--list {
619
+ display: grid;
620
+ width: 100%;
621
+ grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
622
+
623
+ .#{$prefix}--tabs__nav-link {
624
+ .#{$prefix}--tabs__nav-item-label,
625
+ .#{$prefix}--tabs__nav-item-secondary-label {
626
+ overflow: hidden;
627
+ text-overflow: ellipsis;
628
+ }
629
+ .#{$prefix}--tabs__nav-item--icon {
630
+ margin-left: auto;
631
+ }
632
+ }
633
+ }