@carbon/styles 1.67.0 → 1.68.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.
Files changed (43) hide show
  1. package/README.md +3 -3
  2. package/css/styles.css +142 -82
  3. package/css/styles.min.css +1 -1
  4. package/package.json +9 -9
  5. package/scss/__tests__/zone-test.js +1 -1
  6. package/scss/_reset.scss +0 -2
  7. package/scss/_zone.scss +1 -1
  8. package/scss/components/accordion/_accordion.scss +20 -17
  9. package/scss/components/breadcrumb/_breadcrumb.scss +1 -1
  10. package/scss/components/button/_button.scss +1 -1
  11. package/scss/components/code-snippet/_code-snippet.scss +1 -2
  12. package/scss/components/contained-list/_contained-list.scss +2 -2
  13. package/scss/components/content-switcher/_content-switcher.scss +1 -1
  14. package/scss/components/data-table/_data-table.scss +4 -4
  15. package/scss/components/data-table/action/_data-table-action.scss +2 -2
  16. package/scss/components/data-table/expandable/_data-table-expandable.scss +1 -2
  17. package/scss/components/data-table/sort/_data-table-sort.scss +1 -1
  18. package/scss/components/date-picker/_date-picker.scss +1 -1
  19. package/scss/components/dialog/_dialog.scss +2 -2
  20. package/scss/components/dropdown/_dropdown.scss +1 -1
  21. package/scss/components/file-uploader/_file-uploader.scss +4 -5
  22. package/scss/components/list-box/_list-box.scss +1 -1
  23. package/scss/components/modal/_modal.scss +1 -2
  24. package/scss/components/notification/_actionable-notification.scss +1 -2
  25. package/scss/components/notification/_inline-notification.scss +1 -2
  26. package/scss/components/notification/_toast-notification.scss +1 -2
  27. package/scss/components/number-input/_number-input.scss +1 -2
  28. package/scss/components/pagination/_pagination.scss +1 -1
  29. package/scss/components/pagination-nav/_pagination-nav.scss +1 -1
  30. package/scss/components/popover/_popover.scss +4 -5
  31. package/scss/components/select/_select.scss +2 -2
  32. package/scss/components/slider/_slider.scss +21 -5
  33. package/scss/components/tabs/_tabs.scss +29 -4
  34. package/scss/components/tag/_tag.scss +5 -2
  35. package/scss/components/toggle/_toggle.scss +0 -1
  36. package/scss/components/treeview/_treeview.scss +4 -0
  37. package/scss/components/ui-shell/header/_header.scss +1 -1
  38. package/scss/components/ui-shell/side-nav/_side-nav.scss +3 -3
  39. package/scss/utilities/_convert.scss +6 -6
  40. package/scss/utilities/_skeleton.scss +1 -0
  41. package/scss/utilities/_tooltip.scss +2 -5
  42. package/scss/utilities/_z-index.scss +3 -3
  43. package/telemetry.yml +1 -1
@@ -137,6 +137,14 @@
137
137
  &:focus {
138
138
  @include focus-outline('outline');
139
139
  }
140
+
141
+ &:hover {
142
+ background-color: $background-hover;
143
+ }
144
+
145
+ &:active {
146
+ background-color: $background-active;
147
+ }
140
148
  }
141
149
 
142
150
  .#{$prefix}--tab--overflow-nav-button--hidden {
@@ -147,16 +155,29 @@
147
155
  margin: 0;
148
156
  background-color: $layer-accent;
149
157
  inline-size: $spacing-09;
158
+
159
+ &:hover {
160
+ background-color: $layer-accent-hover;
161
+ }
162
+
163
+ &:active {
164
+ background-color: $layer-accent-active;
165
+ }
150
166
  }
151
167
 
152
168
  .#{$prefix}--tab--overflow-nav-button svg {
153
169
  z-index: 2;
154
170
  fill: $icon-primary;
171
+
172
+ &:active,
173
+ &:hover {
174
+ fill: $icon-primary;
175
+ }
155
176
  }
156
177
 
157
178
  .#{$prefix}--tab--overflow-nav-button--next {
158
- position: absolute;
159
- inset-block: 0 0;
179
+ position: relative;
180
+ inset-block: 0;
160
181
  inset-inline-end: 0;
161
182
  }
162
183
 
@@ -187,9 +208,9 @@
187
208
  }
188
209
 
189
210
  .#{$prefix}--tab--overflow-nav-button--previous {
190
- position: absolute;
211
+ position: relative;
191
212
  z-index: 1;
192
- inset-block: 0 0;
213
+ inset-block: 0;
193
214
  inset-inline-start: 0;
194
215
  }
195
216
 
@@ -504,6 +525,10 @@
504
525
  overflow-x: visible;
505
526
  }
506
527
 
528
+ .#{$prefix}--tabs__nav-item--icon-only {
529
+ margin-inline-end: convert.to-rem(1px);
530
+ }
531
+
507
532
  .#{$prefix}--tabs__nav-item--icon-only,
508
533
  &.#{$prefix}--tabs--contained .#{$prefix}--tabs__nav-item--icon-only {
509
534
  display: flex;
@@ -396,8 +396,12 @@
396
396
  border-color: currentColor;
397
397
  }
398
398
 
399
+ .#{$prefix}--tag--filter .#{$prefix}--slug {
400
+ min-inline-size: convert.to-rem(32.14px);
401
+ }
402
+
399
403
  // Windows HCM fix
400
- /* stylelint-disable */
404
+
401
405
  .#{$prefix}--tag {
402
406
  @include high-contrast-mode('outline');
403
407
  }
@@ -424,7 +428,6 @@
424
428
  + .#{$prefix}--tag-label-tooltip {
425
429
  max-inline-size: convert.to-rem(158px);
426
430
  }
427
- /* stylelint-enable */
428
431
 
429
432
  .#{$prefix}--interactive--tag-children {
430
433
  display: inline-flex;
@@ -186,7 +186,6 @@
186
186
  @include high-contrast-mode('outline');
187
187
  }
188
188
 
189
- // stylelint-disable-next-line no-duplicate-selectors
190
189
  .#{$prefix}--toggle__button:focus
191
190
  + .#{$prefix}--toggle__label
192
191
  .#{$prefix}--toggle__switch,
@@ -40,6 +40,10 @@
40
40
  }
41
41
  }
42
42
 
43
+ .#{$prefix}--tree-node--hidden {
44
+ display: none;
45
+ }
46
+
43
47
  .#{$prefix}--tree-node__children {
44
48
  @include component-reset.reset;
45
49
 
@@ -35,7 +35,7 @@
35
35
  block-size: mini-units(6);
36
36
  border-block-end: 1px solid $border-subtle;
37
37
  inset-block-start: 0;
38
- inset-inline: 0 0;
38
+ inset-inline: 0;
39
39
  }
40
40
 
41
41
  .#{$prefix}--header__action {
@@ -36,7 +36,7 @@
36
36
  background-color: $background;
37
37
  color: $text-secondary;
38
38
  inline-size: mini-units(6);
39
- inset-block: 0 0;
39
+ inset-block: 0;
40
40
  inset-inline-start: 0;
41
41
  max-inline-size: mini-units(32);
42
42
  // TODO: sync with motion work
@@ -270,7 +270,7 @@
270
270
  background-color: $border-interactive;
271
271
  content: '';
272
272
  inline-size: 3px;
273
- inset-block: 0 0;
273
+ inset-block: 0;
274
274
  inset-inline-start: 0;
275
275
  }
276
276
  }
@@ -381,7 +381,7 @@
381
381
  background-color: $border-interactive;
382
382
  content: '';
383
383
  inline-size: 3px;
384
- inset-block: 0 0;
384
+ inset-block: 0;
385
385
  inset-inline-start: 0;
386
386
  }
387
387
 
@@ -19,8 +19,8 @@ $base-font-size: 16px !default;
19
19
  /// @access public
20
20
  /// @group utilities
21
21
  @function to-rem($px) {
22
- @if unit($px) != 'px' {
23
- @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
22
+ @if math.unit($px) != 'px' {
23
+ @error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
24
24
  }
25
25
 
26
26
  @return math.div($px, $base-font-size) * 1rem;
@@ -34,8 +34,8 @@ $base-font-size: 16px !default;
34
34
  /// @deprecated
35
35
  /// @group @carbon/layout
36
36
  @function rem($px) {
37
- @if unit($px) != 'px' {
38
- @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
37
+ @if math.unit($px) != 'px' {
38
+ @error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
39
39
  }
40
40
 
41
41
  @return math.div($px, $base-font-size) * 1rem;
@@ -47,8 +47,8 @@ $base-font-size: 16px !default;
47
47
  /// @access public
48
48
  /// @group utilities
49
49
  @function em($px) {
50
- @if unit($px) != 'px' {
51
- @error "Expected argument $px to be of type `px`, instead received: `#{unit($px)}`";
50
+ @if math.unit($px) != 'px' {
51
+ @error "Expected argument $px to be of type `px`, instead received: `#{math.unit($px)}`";
52
52
  }
53
53
 
54
54
  @return math.div($px, $base-font-size) * 1em;
@@ -36,6 +36,7 @@
36
36
  block-size: 100%;
37
37
  content: '';
38
38
  inline-size: 100%;
39
+ inset-inline-start: 0;
39
40
  will-change: transform-origin, transform, opacity;
40
41
 
41
42
  @media (prefers-reduced-motion: reduce) {
@@ -320,11 +320,8 @@
320
320
  transform: translate(100%, -50%);
321
321
  }
322
322
  @if ($position == 'bottom') {
323
- border-width: 0
324
- convert.to-rem(4px)
325
- convert.to-rem(5px)
326
- convert.to-rem(4px);
327
- border-color: transparent transparent $background-inverse transparent;
323
+ border-width: 0 convert.to-rem(4px) convert.to-rem(5px);
324
+ border-color: transparent transparent $background-inverse;
328
325
  inset-block-end: -$caret-spacing;
329
326
  transform: translate(-50%, 100%);
330
327
  }
@@ -4,7 +4,7 @@
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.
6
6
  //
7
-
7
+ @use 'sass:map';
8
8
  /// @access public
9
9
  /// @type Map
10
10
  /// @group utilities
@@ -30,9 +30,9 @@ $z-indexes: (
30
30
  /// z-index: z('modal');
31
31
  /// }
32
32
  @function z($layer) {
33
- @if not map-has-key($z-indexes, $layer) {
33
+ @if not map.has-key($z-indexes, $layer) {
34
34
  @warn 'No layer found for `#{$layer}` in $z-indexes map. Property omitted.';
35
35
  }
36
36
 
37
- @return map-get($z-indexes, $layer);
37
+ @return map.get($z-indexes, $layer);
38
38
  }
package/telemetry.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  # yaml-language-server: $schema=https://unpkg.com/@ibm/telemetry-config-schema@v1/dist/config.schema.json
2
2
  version: 1
3
3
  projectId: d2574dfc-6ec7-4d1a-9c7a-b22cc16dc747
4
- endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics
4
+ endpoint: https://www-api.ibm.com/ibm-telemetry/v1/metrics
5
5
  collect:
6
6
  npm:
7
7
  dependencies: null