@carbon/styles 1.29.0 → 1.30.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 (34) hide show
  1. package/css/styles.css +201 -258
  2. package/css/styles.min.css +1 -1
  3. package/package.json +10 -10
  4. package/scss/__tests__/__snapshots__/motion-test.js.snap +6 -0
  5. package/scss/__tests__/__snapshots__/spacing-test.js.snap +56 -0
  6. package/scss/__tests__/__snapshots__/type-test.js.snap +1547 -1381
  7. package/scss/__tests__/spacing-test.js +31 -0
  8. package/scss/__tests__/type-test.js +2 -0
  9. package/scss/_spacing.scss +5 -1
  10. package/scss/components/content-switcher/_content-switcher.scss +6 -2
  11. package/scss/components/data-table/_data-table.scss +12 -4
  12. package/scss/components/data-table/_mixins.scss +6 -2
  13. package/scss/components/data-table/action/_data-table-action.scss +6 -2
  14. package/scss/components/data-table/expandable/_data-table-expandable.scss +3 -1
  15. package/scss/components/data-table/sort/_data-table-sort.scss +3 -1
  16. package/scss/components/file-uploader/_file-uploader.scss +0 -3
  17. package/scss/components/fluid-date-picker/_fluid-date-picker.scss +21 -7
  18. package/scss/components/fluid-list-box/_fluid-list-box.scss +9 -3
  19. package/scss/components/fluid-multiselect/_fluid-multiselect.scss +3 -1
  20. package/scss/components/fluid-number-input/_fluid-number-input.scss +24 -8
  21. package/scss/components/form/_form.scss +3 -7
  22. package/scss/components/multiselect/_multiselect.scss +3 -1
  23. package/scss/components/notification/_actionable-notification.scss +46 -19
  24. package/scss/components/notification/_inline-notification.scss +10 -3
  25. package/scss/components/notification/_toast-notification.scss +7 -2
  26. package/scss/components/overflow-menu/_overflow-menu.scss +3 -1
  27. package/scss/components/popover/_popover.scss +15 -4
  28. package/scss/components/progress-indicator/_progress-indicator.scss +3 -1
  29. package/scss/components/structured-list/_structured-list.scss +11 -19
  30. package/scss/components/tabs/_tabs.scss +58 -6
  31. package/scss/components/tile/_tile.scss +42 -5
  32. package/scss/components/ui-shell/header/_header.scss +25 -10
  33. package/scss/components/ui-shell/side-nav/_side-nav.scss +21 -2
  34. package/scss/type/_index.scss +1 -0
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2023
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('@carbon/styles/scss/spacing', () => {
17
+ test('Public API', async () => {
18
+ const { get } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../spacing';
21
+
22
+ $_: get('api', (
23
+ variables: meta.module-variables('spacing'),
24
+ ));
25
+ `);
26
+
27
+ const { value: api } = get('api');
28
+
29
+ expect(api).toMatchSnapshot();
30
+ });
31
+ });
@@ -51,6 +51,8 @@ describe('@carbon/styles/scss/type', () => {
51
51
  });
52
52
  expect(api.variables).toMatchInlineSnapshot(`
53
53
  Array [
54
+ "caption-01",
55
+ "caption-02",
54
56
  "label-01",
55
57
  "label-02",
56
58
  "helper-text-01",
@@ -8,4 +8,8 @@
8
8
  @forward '@carbon/layout/scss/spacing' show $spacing, $spacing-01, $spacing-02,
9
9
  $spacing-03, $spacing-04, $spacing-05, $spacing-06, $spacing-07, $spacing-08,
10
10
  $spacing-09, $spacing-10, $spacing-11, $spacing-12, $spacing-13,
11
- $fluid-spacing-01, $fluid-spacing-02, $fluid-spacing-03, $fluid-spacing-04;
11
+ $fluid-spacing-01, $fluid-spacing-02, $fluid-spacing-03, $fluid-spacing-04,
12
+ // Deprecated
13
+ $layout,
14
+ $layout-01, $layout-02, $layout-03, $layout-04, $layout-05, $layout-06,
15
+ $layout-07;
@@ -315,7 +315,9 @@
315
315
  + .#{$prefix}--content-switcher-popover__wrapper
316
316
  .#{$prefix}--content-switcher-btn::before,
317
317
  .#{$prefix}--content-switcher-btn:hover::before,
318
- .#{$prefix}--content-switcher-popover__wrapper:not(.#{$prefix}--content-switcher-popover--disabled):hover
318
+ .#{$prefix}--content-switcher-popover__wrapper:not(
319
+ .#{$prefix}--content-switcher-popover--disabled
320
+ ):hover
319
321
  + .#{$prefix}--content-switcher-popover__wrapper
320
322
  .#{$prefix}--content-switcher-btn::before,
321
323
  .#{$prefix}--content-switcher--selected::before,
@@ -337,7 +339,9 @@
337
339
  }
338
340
 
339
341
  .#{$prefix}--content-switcher--icon-only
340
- .#{$prefix}--content-switcher-btn[disabled]:not(.#{$prefix}--content-switcher--selected):hover,
342
+ .#{$prefix}--content-switcher-btn[disabled]:not(
343
+ .#{$prefix}--content-switcher--selected
344
+ ):hover,
341
345
  .#{$prefix}--content-switcher--icon-only
342
346
  .#{$prefix}--content-switcher-popover--selected
343
347
  + .#{$prefix}--content-switcher-popover--disabled
@@ -673,8 +673,12 @@
673
673
  min-height: 3rem;
674
674
  }
675
675
 
676
- &:not(.#{$prefix}--data-table--xs):not(.#{$prefix}--data-table--xl):not(.#{$prefix}--data-table--sm)
677
- td:not(.#{$prefix}--table-column-menu):not(.#{$prefix}--table-column-checkbox) {
676
+ &:not(.#{$prefix}--data-table--xs):not(.#{$prefix}--data-table--xl):not(
677
+ .#{$prefix}--data-table--sm
678
+ )
679
+ td:not(.#{$prefix}--table-column-menu):not(
680
+ .#{$prefix}--table-column-checkbox
681
+ ) {
678
682
  padding-top: rem(14px);
679
683
  }
680
684
 
@@ -741,8 +745,12 @@
741
745
  border-bottom: 0;
742
746
  }
743
747
 
744
- th:not(.#{$prefix}--table-column-checkbox):not(.#{$prefix}--table-column-menu):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon),
745
- td:not(.#{$prefix}--table-column-checkbox):not(.#{$prefix}--table-column-menu):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon) {
748
+ th:not(.#{$prefix}--table-column-checkbox):not(
749
+ .#{$prefix}--table-column-menu
750
+ ):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon),
751
+ td:not(.#{$prefix}--table-column-checkbox):not(
752
+ .#{$prefix}--table-column-menu
753
+ ):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon) {
746
754
  width: 100%;
747
755
  min-width: 0;
748
756
  }
@@ -25,8 +25,12 @@
25
25
  max-height: $max-height;
26
26
 
27
27
  @if $min-width {
28
- th:not(.#{$prefix}--table-column-checkbox):not(.#{$prefix}--table-column-menu):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon),
29
- td:not(.#{$prefix}--table-column-checkbox):not(.#{$prefix}--table-column-menu):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon) {
28
+ th:not(.#{$prefix}--table-column-checkbox):not(
29
+ .#{$prefix}--table-column-menu
30
+ ):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon),
31
+ td:not(.#{$prefix}--table-column-checkbox):not(
32
+ .#{$prefix}--table-column-menu
33
+ ):not(.#{$prefix}--table-expand):not(.#{$prefix}--table-column-icon) {
30
34
  min-width: $min-width;
31
35
  }
32
36
  }
@@ -94,7 +94,9 @@
94
94
  opacity: 0;
95
95
  }
96
96
 
97
- .#{$prefix}--toolbar-search-container-expandable:not(.#{$prefix}--toolbar-search-container-active)
97
+ .#{$prefix}--toolbar-search-container-expandable:not(
98
+ .#{$prefix}--toolbar-search-container-active
99
+ )
98
100
  .#{$prefix}--search-input {
99
101
  padding: 0;
100
102
  }
@@ -144,7 +146,9 @@
144
146
 
145
147
  // sm expandable icon spacing
146
148
  .#{$prefix}--table-toolbar.#{$prefix}--table-toolbar--sm
147
- .#{$prefix}--search--sm:not(.#{$prefix}--toolbar-search-container-active):not(.#{$prefix}--toolbar-search-container-persistent)
149
+ .#{$prefix}--search--sm:not(
150
+ .#{$prefix}--toolbar-search-container-active
151
+ ):not(.#{$prefix}--toolbar-search-container-persistent)
148
152
  .#{$prefix}--search-magnifier-icon {
149
153
  left: 0;
150
154
  }
@@ -334,7 +334,9 @@
334
334
  }
335
335
 
336
336
  // Parent collapsed hover
337
- tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected:not(.#{$prefix}--expandable-row):hover
337
+ tr.#{$prefix}--parent-row.#{$prefix}--data-table--selected:not(
338
+ .#{$prefix}--expandable-row
339
+ ):hover
338
340
  td {
339
341
  border-top: 1px solid $layer-selected-hover;
340
342
  border-bottom: 1px solid $border-subtle;
@@ -90,7 +90,9 @@
90
90
  justify-content: space-between;
91
91
  }
92
92
 
93
- .#{$prefix}--data-table--sort:not(.#{$prefix}--data-table--xs):not(.#{$prefix}--data-table--sm):not(.#{$prefix}--data-table--md):not(.#{$prefix}--data-table--xl)
93
+ .#{$prefix}--data-table--sort:not(.#{$prefix}--data-table--xs):not(
94
+ .#{$prefix}--data-table--sm
95
+ ):not(.#{$prefix}--data-table--md):not(.#{$prefix}--data-table--xl)
94
96
  th
95
97
  .#{$prefix}--table-sort__flex {
96
98
  /* IE11 workaround for align-items: center and min-height
@@ -64,9 +64,6 @@
64
64
  display: inline-block;
65
65
  width: 100%;
66
66
  max-width: rem(320px);
67
- @if not enabled('enable-v11-release') {
68
- margin-bottom: $spacing-03;
69
- }
70
67
 
71
68
  color: $link-primary;
72
69
  cursor: pointer;
@@ -79,7 +79,9 @@
79
79
 
80
80
  .#{$prefix}--date-picker--fluid
81
81
  .#{$prefix}--date-picker--simple
82
- .#{$prefix}--date-picker__input:not(.#{$prefix}--date-picker__input--invalid):not(.#{$prefix}--date-picker__input--warn),
82
+ .#{$prefix}--date-picker__input:not(
83
+ .#{$prefix}--date-picker__input--invalid
84
+ ):not(.#{$prefix}--date-picker__input--warn),
83
85
  .#{$prefix}--date-picker--fluid
84
86
  .#{$prefix}--date-picker--simple
85
87
  .#{$prefix}--date-picker--fluid--warn {
@@ -103,15 +105,21 @@
103
105
 
104
106
  .#{$prefix}--date-picker--fluid
105
107
  .#{$prefix}--date-picker--single
106
- .#{$prefix}--date-picker__input:not(.#{$prefix}--date-picker__input--invalid),
108
+ .#{$prefix}--date-picker__input:not(
109
+ .#{$prefix}--date-picker__input--invalid
110
+ ),
107
111
  .#{$prefix}--date-picker--single .#{$prefix}--date-picker--fluid--warn {
108
112
  border-bottom: 1px solid $border-strong;
109
113
  }
110
114
 
111
115
  // Range
112
- .#{$prefix}--date-picker--fluid:not(.#{$prefix}--date-picker--fluid--invalid):not(.#{$prefix}--date-picker--fluid--warn)
116
+ .#{$prefix}--date-picker--fluid:not(
117
+ .#{$prefix}--date-picker--fluid--invalid
118
+ ):not(.#{$prefix}--date-picker--fluid--warn)
113
119
  .#{$prefix}--date-picker--range
114
- .#{$prefix}--date-picker-container:not(.#{$prefix}--date-picker--fluid--invalid) {
120
+ .#{$prefix}--date-picker-container:not(
121
+ .#{$prefix}--date-picker--fluid--invalid
122
+ ) {
115
123
  border-bottom: 1px solid $border-strong;
116
124
  }
117
125
 
@@ -362,16 +370,22 @@
362
370
  }
363
371
 
364
372
  // Readonly
365
- .#{$prefix}--date-picker--fluid.#{$prefix}--date-picker--fluid--readonly:not(.#{$prefix}--date-picker--fluid--invalid):not(.#{$prefix}--date-picker--fluid--warn)
373
+ .#{$prefix}--date-picker--fluid.#{$prefix}--date-picker--fluid--readonly:not(
374
+ .#{$prefix}--date-picker--fluid--invalid
375
+ ):not(.#{$prefix}--date-picker--fluid--warn)
366
376
  .#{$prefix}--date-picker
367
377
  > .#{$prefix}--date-picker-container,
368
- .#{$prefix}--date-picker--fluid.#{$prefix}--date-picker--fluid--readonly:not(.#{$prefix}--date-picker--fluid--invalid):not(.#{$prefix}--date-picker--fluid--warn)
378
+ .#{$prefix}--date-picker--fluid.#{$prefix}--date-picker--fluid--readonly:not(
379
+ .#{$prefix}--date-picker--fluid--invalid
380
+ ):not(.#{$prefix}--date-picker--fluid--warn)
369
381
  .#{$prefix}--date-picker
370
382
  .#{$prefix}--date-picker__input {
371
383
  border-bottom-color: $border-subtle;
372
384
  }
373
385
 
374
- .#{$prefix}--date-picker--fluid.#{$prefix}--date-picker--fluid--readonly:not(.#{$prefix}--date-picker--fluid--invalid):not(.#{$prefix}--date-picker--fluid--warn)
386
+ .#{$prefix}--date-picker--fluid.#{$prefix}--date-picker--fluid--readonly:not(
387
+ .#{$prefix}--date-picker--fluid--invalid
388
+ ):not(.#{$prefix}--date-picker--fluid--warn)
375
389
  .#{$prefix}--date-picker--range
376
390
  > .#{$prefix}--date-picker-container:last-child
377
391
  .#{$prefix}--date-picker__input {
@@ -71,12 +71,16 @@
71
71
  height: 1rem;
72
72
  }
73
73
 
74
- .#{$prefix}--list-box__wrapper--fluid:not(.#{$prefix}--list-box__wrapper--fluid--condensed)
74
+ .#{$prefix}--list-box__wrapper--fluid:not(
75
+ .#{$prefix}--list-box__wrapper--fluid--condensed
76
+ )
75
77
  .#{$prefix}--list-box__menu-item {
76
78
  height: $spacing-10;
77
79
  }
78
80
 
79
- .#{$prefix}--list-box__wrapper--fluid:not(.#{$prefix}--list-box__wrapper--fluid--condensed)
81
+ .#{$prefix}--list-box__wrapper--fluid:not(
82
+ .#{$prefix}--list-box__wrapper--fluid--condensed
83
+ )
80
84
  .#{$prefix}--list-box__menu-item__selected-icon {
81
85
  top: rem(20px);
82
86
  }
@@ -122,7 +126,9 @@
122
126
  }
123
127
 
124
128
  // Invalid / Warning styles
125
- .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid:not(.#{$prefix}--list-box__wrapper--fluid--focus) {
129
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid:not(
130
+ .#{$prefix}--list-box__wrapper--fluid--focus
131
+ ) {
126
132
  @include focus-outline('invalid');
127
133
 
128
134
  z-index: 2;
@@ -19,7 +19,9 @@
19
19
  @use '../fluid-combo-box';
20
20
 
21
21
  @mixin fluid-multiselect {
22
- .#{$prefix}--multi-select__wrapper.#{$prefix}--list-box__wrapper--fluid--focus:not(.#{$prefix}--multi-select--filterable__wrapper)
22
+ .#{$prefix}--multi-select__wrapper.#{$prefix}--list-box__wrapper--fluid--focus:not(
23
+ .#{$prefix}--multi-select--filterable__wrapper
24
+ )
23
25
  .#{$prefix}--list-box__field--wrapper--input-focused {
24
26
  outline: none;
25
27
  }
@@ -84,18 +84,26 @@
84
84
  }
85
85
 
86
86
  // Weird overrides (needed to override focus borders on stepper buttons when hovered while input has focus)
87
- .#{$prefix}--number-input--fluid:not(.#{$prefix}--number-input--fluid--invalid)
87
+ .#{$prefix}--number-input--fluid:not(
88
+ .#{$prefix}--number-input--fluid--invalid
89
+ )
88
90
  .#{$prefix}--number
89
- .#{$prefix}--number__input-wrapper:not(.#{$prefix}--number__input-wrapper--warning)
91
+ .#{$prefix}--number__input-wrapper:not(
92
+ .#{$prefix}--number__input-wrapper--warning
93
+ )
90
94
  input[type='number']:focus
91
95
  ~ .#{$prefix}--number__controls
92
96
  .#{$prefix}--number__control-btn:hover {
93
97
  outline: 2px solid transparent;
94
98
  }
95
99
 
96
- .#{$prefix}--number-input--fluid:not(.#{$prefix}--number-input--fluid--invalid)
100
+ .#{$prefix}--number-input--fluid:not(
101
+ .#{$prefix}--number-input--fluid--invalid
102
+ )
97
103
  .#{$prefix}--number
98
- .#{$prefix}--number__input-wrapper:not(.#{$prefix}--number__input-wrapper--warning)
104
+ .#{$prefix}--number__input-wrapper:not(
105
+ .#{$prefix}--number__input-wrapper--warning
106
+ )
99
107
  input[type='number']:focus
100
108
  ~ .#{$prefix}--number__controls
101
109
  .#{$prefix}--number__control-btn:hover::before {
@@ -108,8 +116,12 @@
108
116
  }
109
117
  // End weirdness
110
118
 
111
- .#{$prefix}--number-input--fluid:not(.#{$prefix}--number-input--fluid--invalid)
112
- .#{$prefix}--number-input-wrapper:not(.#{$prefix}--number-input-wrapper__warning)
119
+ .#{$prefix}--number-input--fluid:not(
120
+ .#{$prefix}--number-input--fluid--invalid
121
+ )
122
+ .#{$prefix}--number-input-wrapper:not(
123
+ .#{$prefix}--number-input-wrapper__warning
124
+ )
113
125
  input[type='number']:focus
114
126
  ~ .#{$prefix}--number__controls
115
127
  .#{$prefix}--number__control-btn:hover {
@@ -208,7 +220,9 @@
208
220
  margin: 0;
209
221
  }
210
222
 
211
- .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--invalid:not(.#{$prefix}--number-input--fluid--focus)
223
+ .#{$prefix}--number-input--fluid.#{$prefix}--number-input--fluid--invalid:not(
224
+ .#{$prefix}--number-input--fluid--focus
225
+ )
212
226
  .#{$prefix}--number {
213
227
  @include focus-outline('invalid');
214
228
  }
@@ -263,7 +277,9 @@
263
277
  }
264
278
 
265
279
  // Disabled states
266
- .#{$prefix}--number-input--fluid--disabled:not(.#{$prefix}--number-input--fluid--invalid)
280
+ .#{$prefix}--number-input--fluid--disabled:not(
281
+ .#{$prefix}--number-input--fluid--invalid
282
+ )
267
283
  .#{$prefix}--number {
268
284
  border-bottom: 1px solid $border-subtle;
269
285
  }
@@ -125,7 +125,9 @@ $input-label-weight: 400 !default;
125
125
  > .#{$prefix}--text-area--invalid:not(:focus),
126
126
  .#{$prefix}--select-input__wrapper[data-invalid]
127
127
  .#{$prefix}--select-input:not(:focus),
128
- .#{$prefix}--list-box[data-invalid]:not(.#{$prefix}--multi-select--invalid--focused),
128
+ .#{$prefix}--list-box[data-invalid]:not(
129
+ .#{$prefix}--multi-select--invalid--focused
130
+ ),
129
131
  .#{$prefix}--combo-box[data-invalid]:not(.#{$prefix}--multi-select--selected)
130
132
  .#{$prefix}--text-input:not(:focus) {
131
133
  @include focus-outline('invalid');
@@ -177,12 +179,6 @@ $input-label-weight: 400 !default;
177
179
  display: block;
178
180
  }
179
181
 
180
- @if not enabled('enable-v11-release') {
181
- .#{$prefix}--form--fluid .#{$prefix}--fieldset {
182
- margin: 0;
183
- }
184
- }
185
-
186
182
  .#{$prefix}--form--fluid input[data-invalid] {
187
183
  outline: none;
188
184
  }
@@ -95,7 +95,9 @@
95
95
  padding-left: 0;
96
96
  }
97
97
 
98
- .#{$prefix}--multi-select--filterable.#{$prefix}--list-box--disabled:hover:not(.#{$prefix}--multi-select--filterable)
98
+ .#{$prefix}--multi-select--filterable.#{$prefix}--list-box--disabled:hover:not(
99
+ .#{$prefix}--multi-select--filterable
100
+ )
99
101
  .#{$prefix}--text-input {
100
102
  background-color: $field;
101
103
  }
@@ -36,10 +36,6 @@
36
36
  height: auto;
37
37
  min-height: rem(48px);
38
38
  flex-wrap: wrap;
39
- @if not enabled('enable-v11-release') {
40
- margin-top: $spacing-05;
41
- margin-bottom: $spacing-05;
42
- }
43
39
 
44
40
  color: $text-inverse;
45
41
 
@@ -64,7 +60,9 @@
64
60
  box-shadow: 0 2px 6px 0 rgb(0 0 0 / 20%);
65
61
  }
66
62
 
67
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
63
+ .#{$prefix}--actionable-notification:not(
64
+ .#{$prefix}--actionable-notification--low-contrast
65
+ )
68
66
  a {
69
67
  color: $link-inverse;
70
68
  }
@@ -90,7 +88,9 @@
90
88
  color: $text-primary;
91
89
  }
92
90
 
93
- .#{$prefix}--actionable-notification--low-contrast:not(.#{$prefix}--actionable-notification--toast)::before {
91
+ .#{$prefix}--actionable-notification--low-contrast:not(
92
+ .#{$prefix}--actionable-notification--toast
93
+ )::before {
94
94
  position: absolute;
95
95
  top: 0;
96
96
  left: 0;
@@ -182,7 +182,10 @@
182
182
 
183
183
  .#{$prefix}--actionable-notification--warning
184
184
  .#{$prefix}--toast-notification__icon
185
- path[opacity='0'] {
185
+ path[opacity='0'],
186
+ .#{$prefix}--actionable-notification--warning-alt
187
+ .#{$prefix}--toast-notification__icon
188
+ path:first-of-type {
186
189
  fill: $black-100;
187
190
  opacity: 1;
188
191
  }
@@ -193,7 +196,9 @@
193
196
  margin: 0 $spacing-09 0 rem(13px);
194
197
  }
195
198
 
196
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--toast)
199
+ .#{$prefix}--actionable-notification:not(
200
+ .#{$prefix}--actionable-notification--toast
201
+ )
197
202
  .#{$prefix}--actionable-notification__details {
198
203
  @include breakpoint(md) {
199
204
  margin: 0 rem(13px);
@@ -272,7 +277,9 @@
272
277
  }
273
278
  }
274
279
 
275
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
280
+ .#{$prefix}--actionable-notification:not(
281
+ .#{$prefix}--actionable-notification--low-contrast
282
+ )
276
283
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--ghost {
277
284
  color: $link-inverse;
278
285
  }
@@ -324,7 +331,9 @@
324
331
  // btn-tertiary g10 theme button styles should become g90 button styles
325
332
  // btn-tertiary g90 theme button styles should become g10 button styles
326
333
  // btn-tertiary g100 theme button styles should become white button styles
327
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
334
+ .#{$prefix}--actionable-notification:not(
335
+ .#{$prefix}--actionable-notification--low-contrast
336
+ )
328
337
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary {
329
338
  @include button-mixins.button-theme(
330
339
  transparent,
@@ -336,12 +345,16 @@
336
345
  );
337
346
  }
338
347
 
339
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
348
+ .#{$prefix}--actionable-notification:not(
349
+ .#{$prefix}--actionable-notification--low-contrast
350
+ )
340
351
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:hover {
341
352
  color: $notification-action-tertiary-inverse-text;
342
353
  }
343
354
 
344
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
355
+ .#{$prefix}--actionable-notification:not(
356
+ .#{$prefix}--actionable-notification--low-contrast
357
+ )
345
358
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:focus {
346
359
  border-color: $focus-inverse;
347
360
  background-color: $notification-action-tertiary-inverse;
@@ -350,24 +363,38 @@
350
363
  color: $notification-action-tertiary-inverse-text;
351
364
  }
352
365
 
353
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
366
+ .#{$prefix}--actionable-notification:not(
367
+ .#{$prefix}--actionable-notification--low-contrast
368
+ )
354
369
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:active {
355
370
  border-color: transparent;
356
371
  background-color: $notification-action-tertiary-inverse-active;
357
372
  color: $notification-action-tertiary-inverse-text;
358
373
  }
359
374
 
360
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
375
+ .#{$prefix}--actionable-notification:not(
376
+ .#{$prefix}--actionable-notification--low-contrast
377
+ )
361
378
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:disabled,
362
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
379
+ .#{$prefix}--actionable-notification:not(
380
+ .#{$prefix}--actionable-notification--low-contrast
381
+ )
363
382
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:hover:disabled,
364
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
383
+ .#{$prefix}--actionable-notification:not(
384
+ .#{$prefix}--actionable-notification--low-contrast
385
+ )
365
386
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary:focus:disabled,
366
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
387
+ .#{$prefix}--actionable-notification:not(
388
+ .#{$prefix}--actionable-notification--low-contrast
389
+ )
367
390
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary.#{$prefix}--btn--disabled,
368
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
391
+ .#{$prefix}--actionable-notification:not(
392
+ .#{$prefix}--actionable-notification--low-contrast
393
+ )
369
394
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary.#{$prefix}--btn--disabled:hover,
370
- .#{$prefix}--actionable-notification:not(.#{$prefix}--actionable-notification--low-contrast)
395
+ .#{$prefix}--actionable-notification:not(
396
+ .#{$prefix}--actionable-notification--low-contrast
397
+ )
371
398
  .#{$prefix}--actionable-notification__action-button.#{$prefix}--btn--tertiary.#{$prefix}--btn--disabled:focus {
372
399
  background: transparent;
373
400
  color: $notification-action-tertiary-inverse-text-on-color-disabled;
@@ -51,7 +51,9 @@
51
51
  }
52
52
  }
53
53
 
54
- .#{$prefix}--inline-notification:not(.#{$prefix}--inline-notification--low-contrast)
54
+ .#{$prefix}--inline-notification:not(
55
+ .#{$prefix}--inline-notification--low-contrast
56
+ )
55
57
  a {
56
58
  color: $link-inverse;
57
59
  }
@@ -169,7 +171,10 @@
169
171
 
170
172
  .#{$prefix}--inline-notification--warning
171
173
  .#{$prefix}--inline-notification__icon
172
- path[opacity='0'] {
174
+ path[opacity='0'],
175
+ .#{$prefix}--inline-notification--warning-alt
176
+ .#{$prefix}--inline-notification__icon
177
+ path:first-of-type {
173
178
  fill: $black-100;
174
179
  opacity: 1;
175
180
  }
@@ -218,7 +223,9 @@
218
223
  }
219
224
  }
220
225
 
221
- .#{$prefix}--inline-notification:not(.#{$prefix}--inline-notification--low-contrast)
226
+ .#{$prefix}--inline-notification:not(
227
+ .#{$prefix}--inline-notification--low-contrast
228
+ )
222
229
  .#{$prefix}--inline-notification__action-button.#{$prefix}--btn--ghost {
223
230
  color: $link-inverse;
224
231
  }
@@ -41,7 +41,9 @@
41
41
  }
42
42
  }
43
43
 
44
- .#{$prefix}--toast-notification:not(.#{$prefix}--toast-notification--low-contrast)
44
+ .#{$prefix}--toast-notification:not(
45
+ .#{$prefix}--toast-notification--low-contrast
46
+ )
45
47
  a {
46
48
  color: $link-inverse;
47
49
  }
@@ -129,7 +131,10 @@
129
131
 
130
132
  .#{$prefix}--toast-notification--warning
131
133
  .#{$prefix}--toast-notification__icon
132
- path[opacity='0'] {
134
+ path[opacity='0'],
135
+ .#{$prefix}--toast-notification--warning-alt
136
+ .#{$prefix}--toast-notification__icon
137
+ path:first-of-type {
133
138
  fill: $black-100;
134
139
  opacity: 1;
135
140
  }
@@ -136,7 +136,9 @@
136
136
  background-color: $layer;
137
137
  }
138
138
 
139
- .#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']:not(.#{$prefix}--breadcrumb-menu-options)::after {
139
+ .#{$prefix}--overflow-menu-options[data-floating-menu-direction='bottom']:not(
140
+ .#{$prefix}--breadcrumb-menu-options
141
+ )::after {
140
142
  top: rem(-3px);
141
143
  left: 0;
142
144
  width: rem(40px);
@@ -130,7 +130,9 @@ $popover-caret-height: custom-property.get-var(
130
130
  pointer-events: auto;
131
131
  }
132
132
 
133
- .#{$prefix}--popover--open .#{$prefix}--popover-content {
133
+ .#{$prefix}--popover--open
134
+ > .#{$prefix}--popover
135
+ > .#{$prefix}--popover-content {
134
136
  display: block;
135
137
  }
136
138
 
@@ -144,7 +146,9 @@ $popover-caret-height: custom-property.get-var(
144
146
  content: '';
145
147
  }
146
148
 
147
- .#{$prefix}--popover--open .#{$prefix}--popover-content::before {
149
+ .#{$prefix}--popover--open
150
+ > .#{$prefix}--popover
151
+ > .#{$prefix}--popover-content::before {
148
152
  display: block;
149
153
  }
150
154
 
@@ -160,11 +164,18 @@ $popover-caret-height: custom-property.get-var(
160
164
  will-change: transform;
161
165
  }
162
166
 
163
- .#{$prefix}--popover--open.#{$prefix}--popover--caret
164
- .#{$prefix}--popover-caret {
167
+ .#{$prefix}--popover--open
168
+ > .#{$prefix}--popover
169
+ > .#{$prefix}--popover-caret {
165
170
  display: block;
166
171
  }
167
172
 
173
+ .#{$prefix}--popover--tab-tip
174
+ .#{$prefix}--popover
175
+ .#{$prefix}--popover-caret {
176
+ display: none;
177
+ }
178
+
168
179
  //-----------------------------------------------------------------------------
169
180
  // Bottom
170
181
  //-----------------------------------------------------------------------------
@@ -111,7 +111,9 @@ $progress-indicator-bar-width: 1px inset transparent !default;
111
111
  margin-right: 0.75rem;
112
112
  }
113
113
 
114
- .#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable) {
114
+ .#{$prefix}--progress-step-button:not(
115
+ .#{$prefix}--progress-step-button--unclickable
116
+ ) {
115
117
  &:focus {
116
118
  outline: none;
117
119
  }