@carbon/styles 1.106.0 → 1.107.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.106.0",
4
+ "version": "1.107.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,13 +40,13 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@carbon/colors": "^11.51.0",
43
+ "@carbon/colors": "^11.52.0-rc.0",
44
44
  "@carbon/feature-flags": "^1.3.0",
45
- "@carbon/grid": "^11.55.0",
46
- "@carbon/layout": "^11.52.0",
47
- "@carbon/motion": "^11.45.0",
48
- "@carbon/themes": "^11.73.0",
49
- "@carbon/type": "^11.59.0",
45
+ "@carbon/grid": "^11.56.0-rc.0",
46
+ "@carbon/layout": "^11.53.0-rc.0",
47
+ "@carbon/motion": "^11.46.0-rc.0",
48
+ "@carbon/themes": "^11.74.0-rc.0",
49
+ "@carbon/type": "^11.60.0-rc.0",
50
50
  "@ibm/plex": "6.4.1",
51
51
  "@ibm/plex-mono": "1.1.0",
52
52
  "@ibm/plex-sans": "1.1.0",
@@ -63,7 +63,7 @@
63
63
  "autoprefixer": "^10.4.7",
64
64
  "browserslist-config-carbon": "^11.2.0",
65
65
  "css": "^3.0.0",
66
- "cssnano": "^7.0.0",
66
+ "cssnano": "^8.0.0",
67
67
  "postcss": "^8.5.6",
68
68
  "postcss-flexbugs-fixes": "^5.0.2",
69
69
  "rimraf": "^6.0.1",
@@ -75,5 +75,5 @@
75
75
  "scss/**/*.css",
76
76
  "css/**/*.css"
77
77
  ],
78
- "gitHead": "13c5c427ad4413aea5184a0a593e6452bc163e4a"
78
+ "gitHead": "3d219dfcc2a3da515016f7ce0e769d013c3a6c03"
79
79
  }
package/scss/_theme.scss CHANGED
@@ -36,7 +36,6 @@
36
36
  @include custom-property.declaration('icon-on-color', SelectedItemText);
37
37
 
38
38
  // Some components currently set these values for fill, although unclear if that's valid.
39
- @include custom-property.declaration('button-disabled', GrayText);
40
39
  @include custom-property.declaration('interactive', ButtonText);
41
40
  @include custom-property.declaration('link-primary', LinkText);
42
41
  @include custom-property.declaration('link-primary-hover', LinkText);
@@ -63,6 +62,8 @@
63
62
  'layer-selected-inverse',
64
63
  SelectedItem
65
64
  );
65
+ // Set focus color to system Highlight for better visibility in high contrast mode
66
+ @include custom-property.declaration('focus', Highlight);
66
67
  }
67
68
 
68
69
  // Note: we need to re-emit the contextual layer tokens as part of the theme
@@ -119,6 +119,13 @@ $content-padding: 0 0 0 $spacing-05 !default;
119
119
  }
120
120
  }
121
121
 
122
+ // Box shadow focus rings don't appear in high contrast mode, so we use outline instead
123
+ @media screen and (-ms-high-contrast: active), (forced-colors: active) {
124
+ .#{$prefix}--accordion__heading:focus {
125
+ outline: 2px solid Highlight;
126
+ }
127
+ }
128
+
122
129
  // Disabled styles
123
130
  .#{$prefix}--accordion__heading[disabled] {
124
131
  background-color: transparent;
@@ -167,6 +167,7 @@ $copy-btn-feedback: $background-inverse !default;
167
167
  display: flex;
168
168
  align-items: center;
169
169
  block-size: 100%;
170
+ min-inline-size: 0;
170
171
  overflow-x: auto;
171
172
  padding-inline-start: $spacing-05;
172
173
 
@@ -19,4 +19,6 @@
19
19
  background-color: $layer;
20
20
  inline-size: 100%;
21
21
  max-inline-size: convert.to-rem(768px);
22
+ // Allow shrinking in grid/flex parents (e.g. Stack) so long pre content does not force layout width
23
+ min-inline-size: 0;
22
24
  }
@@ -287,6 +287,11 @@
287
287
  }
288
288
  }
289
289
 
290
+ // Prevent a 2px border when using `enable-dialog-element` feature flag
291
+ .#{$prefix}--dialog.#{$prefix}--modal-container {
292
+ border: none;
293
+ }
294
+
290
295
  .#{$prefix}--dialog-content {
291
296
  position: relative;
292
297
  grid-area: content;
@@ -257,6 +257,11 @@
257
257
  outline-width: 1px;
258
258
  }
259
259
 
260
+ .#{$prefix}--file__selected-file--disabled {
261
+ color: $text-disabled;
262
+ cursor: not-allowed;
263
+ }
264
+
260
265
  .#{$prefix}--file__selected-file--invalid {
261
266
  @include focus-outline('invalid');
262
267
 
@@ -377,18 +382,25 @@
377
382
  background-color: transparent;
378
383
  block-size: $spacing-06;
379
384
  cursor: pointer;
380
- fill: $icon-primary;
381
385
  inline-size: $spacing-06;
382
386
 
387
+ svg {
388
+ fill: $icon-primary;
389
+ }
390
+
391
+ &[disabled] {
392
+ cursor: not-allowed;
393
+
394
+ svg {
395
+ fill: $icon-disabled;
396
+ }
397
+ }
398
+
383
399
  &:focus {
384
400
  @include focus-outline('outline');
385
401
  }
386
402
  }
387
403
 
388
- .#{$prefix}--file__state-container .#{$prefix}--file-close svg path {
389
- fill: $icon-primary;
390
- }
391
-
392
404
  .#{$prefix}--file__state-container .#{$prefix}--inline-loading__animation {
393
405
  margin-inline-end: -$spacing-03;
394
406
  }
@@ -147,6 +147,20 @@ $popover-caret-height: custom-property.get-var(
147
147
  // High contrast modifier
148
148
  .#{$prefix}--popover--high-contrast .#{$prefix}--popover {
149
149
  @include popover-highcontrast-base;
150
+
151
+ .#{$prefix}--skeleton,
152
+ .#{$prefix}--skeleton__text,
153
+ .#{$prefix}--skeleton__placeholder,
154
+ .#{$prefix}--icon--skeleton {
155
+ background: theme.$background-inverse-hover;
156
+ }
157
+
158
+ .#{$prefix}--skeleton::before,
159
+ .#{$prefix}--skeleton__text::before,
160
+ .#{$prefix}--skeleton__placeholder::before,
161
+ .#{$prefix}--icon--skeleton::before {
162
+ background: theme.$background-inverse;
163
+ }
150
164
  }
151
165
 
152
166
  // Drop shadow modifier
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021
2
+ // Copyright IBM Corp. 2021, 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.
@@ -42,7 +42,7 @@
42
42
 
43
43
  .#{$prefix}--progress-bar__track {
44
44
  position: relative;
45
- background-color: $layer;
45
+ background-color: $border-subtle;
46
46
  block-size: convert.to-rem(8px);
47
47
  inline-size: 100%;
48
48
  min-inline-size: convert.to-rem(48px);
@@ -104,6 +104,12 @@
104
104
  }
105
105
  }
106
106
 
107
+ @media screen and (-ms-high-contrast: active), (forced-colors: active) {
108
+ .#{$prefix}--toggle__switch--checked {
109
+ background-color: Highlight;
110
+ }
111
+ }
112
+
107
113
  .#{$prefix}--toggle__text {
108
114
  @include type-style('body-01');
109
115
 
@@ -41,6 +41,13 @@
41
41
  fill: theme.$icon-primary;
42
42
  }
43
43
 
44
+ @media screen and (-ms-high-contrast: active), (forced-colors: active) {
45
+ .#{$prefix}--toggletip-button:hover svg,
46
+ .#{$prefix}--toggletip--open .#{$prefix}--toggletip-button svg {
47
+ fill: Highlight;
48
+ }
49
+ }
50
+
44
51
  .#{$prefix}--toggletip-button:focus {
45
52
  @include focus-outline.focus-outline;
46
53
  }