@carbon/styles 1.28.0-rc.0 → 1.29.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.28.0-rc.0",
4
+ "version": "1.29.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -44,13 +44,13 @@
44
44
  "devDependencies": {
45
45
  "@carbon/test-utils": "^10.28.0",
46
46
  "autoprefixer": "^10.4.7",
47
- "browserslist-config-carbon": "^11.2.0-rc.0",
47
+ "browserslist-config-carbon": "^11.2.0",
48
48
  "css": "^3.0.0",
49
49
  "cssnano": "^6.0.0",
50
50
  "lodash.isequal": "^4.5.0",
51
51
  "postcss": "^8.4.14",
52
52
  "postcss-flexbugs-fixes": "^5.0.2",
53
- "rimraf": "^4.0.0",
53
+ "rimraf": "^5.0.0",
54
54
  "sass": "^1.51.0"
55
55
  },
56
56
  "sideEffects": [
@@ -59,5 +59,5 @@
59
59
  "scss/**/*.css",
60
60
  "css/**/*.css"
61
61
  ],
62
- "gitHead": "419643a2b37523e0d4add7245c4762e51356e91b"
62
+ "gitHead": "e25cb04ffef0834eac0ef6f05bc9f7978fb4b796"
63
63
  }
package/scss/_config.scss CHANGED
@@ -62,7 +62,7 @@ $prefix: 'cds' !default;
62
62
  /// @group @carbon/grid
63
63
  $flex-grid-columns: 16 !default;
64
64
 
65
- /// Specify if the default grid type should be the flexbox grid
65
+ /// Specify if the flexbox grid styles should be emitted
66
66
  /// @type Boolean
67
67
  /// @group config
68
68
  $use-flexbox-grid: false !default;
@@ -33,6 +33,52 @@
33
33
  width: 100%;
34
34
  }
35
35
 
36
+ .#{$prefix}--contained-list .#{$prefix}--search {
37
+ position: sticky;
38
+ z-index: 1;
39
+ top: 48px;
40
+
41
+ &.#{$prefix}--search--expandable .#{$prefix}--search-input {
42
+ background-color: $field;
43
+ }
44
+ }
45
+
46
+ .#{$prefix}--contained-list .#{$prefix}--search .#{$prefix}--search-input {
47
+ border-bottom: 1px solid $border-subtle;
48
+ background-color: $background;
49
+ }
50
+
51
+ .#{$prefix}--contained-list
52
+ .#{$prefix}--search
53
+ .#{$prefix}--search-close::before {
54
+ display: none;
55
+ }
56
+
57
+ .#{$prefix}--contained-list .#{$prefix}--search .#{$prefix}--search-close {
58
+ border-right: 2px solid transparent;
59
+ outline: none;
60
+
61
+ &:focus {
62
+ @include focus-outline('outline');
63
+ }
64
+ }
65
+
66
+ .#{$prefix}--contained-list
67
+ .#{$prefix}--search
68
+ .#{$prefix}--search-input
69
+ ~ .#{$prefix}--search-close:hover {
70
+ border-bottom: 1px solid transparent;
71
+ }
72
+
73
+ .#{$prefix}--contained-list
74
+ .#{$prefix}--search
75
+ .#{$prefix}--search-input:focus
76
+ ~ .#{$prefix}--search-close:hover {
77
+ border: 2px solid $focus;
78
+ border-left: 0;
79
+ outline: none;
80
+ }
81
+
36
82
  // Sizes
37
83
 
38
84
  $sizes: (
@@ -31,6 +31,12 @@
31
31
  flex-direction: column;
32
32
  }
33
33
 
34
+ .#{$prefix}--number
35
+ .#{$prefix}--number__input-wrapper--warning
36
+ input[type='number'] {
37
+ padding-right: rem(128px);
38
+ }
39
+
34
40
  .#{$prefix}--number input[type='number'] {
35
41
  @include type-style('body-compact-01');
36
42
  @include focus-outline('reset');
@@ -40,7 +46,7 @@
40
46
  min-width: 9.375rem;
41
47
  height: rem(40px);
42
48
  box-sizing: border-box;
43
- padding-right: rem(128px);
49
+ padding-right: rem(96px);
44
50
  padding-left: $spacing-05;
45
51
  border: 0;
46
52
  border-bottom: rem(1px) solid $border-strong;
@@ -77,14 +83,38 @@
77
83
  &::-webkit-inner-spin-button {
78
84
  appearance: none;
79
85
  }
86
+
87
+ &[data-invalid] {
88
+ padding-right: rem(128px);
89
+ }
80
90
  }
81
91
 
82
- .#{$prefix}--number--lg.#{$prefix}--number input[type='number'] {
83
- padding-right: rem(144px);
92
+ .#{$prefix}--number--lg.#{$prefix}--number {
93
+ input[type='number'] {
94
+ padding-right: rem(112px);
95
+
96
+ &[data-invalid] {
97
+ padding-right: rem(144px);
98
+ }
99
+ }
100
+
101
+ .#{$prefix}--number__input-wrapper--warning input[type='number'] {
102
+ padding-right: rem(144px);
103
+ }
84
104
  }
85
105
 
86
- .#{$prefix}--number--sm.#{$prefix}--number input[type='number'] {
87
- padding-right: rem(112px);
106
+ .#{$prefix}--number--sm.#{$prefix}--number {
107
+ input[type='number'] {
108
+ padding-right: rem(80px);
109
+
110
+ &[data-invalid] {
111
+ padding-right: rem(112px);
112
+ }
113
+ }
114
+
115
+ .#{$prefix}--number__input-wrapper--warning input[type='number'] {
116
+ padding-right: rem(112px);
117
+ }
88
118
  }
89
119
 
90
120
  .#{$prefix}--number input[type='number']:disabled {
@@ -186,11 +186,15 @@
186
186
  white-space: nowrap;
187
187
  }
188
188
 
189
+ .#{$prefix}--structured-list-input + .#{$prefix}--structured-list-td {
190
+ text-align: right;
191
+ }
192
+
189
193
  .#{$prefix}--structured-list-svg {
190
194
  display: inline-block;
191
195
  fill: transparent;
192
196
  transition: all motion.$duration-fast-02 motion.motion(standard, productive);
193
- vertical-align: middle;
197
+ vertical-align: top;
194
198
  }
195
199
 
196
200
  .#{$prefix}--structured-list-input:checked
@@ -87,6 +87,7 @@
87
87
 
88
88
  .#{$prefix}--side-nav__overlay-active {
89
89
  @include breakpoint-down('lg') {
90
+ z-index: z('overlay');
90
91
  width: 100vw;
91
92
  height: 100vh;
92
93
  background-color: $overlay;
@@ -12,6 +12,6 @@
12
12
 
13
13
  @if config.$use-flexbox-grid == true {
14
14
  @include grid.flex-grid();
15
- } @else {
16
- @include grid.css-grid();
17
15
  }
16
+
17
+ @include grid.css-grid();