@carbon/styles 1.14.0 → 1.15.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.14.0",
4
+ "version": "1.15.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -59,5 +59,5 @@
59
59
  "scss/**/*.css",
60
60
  "css/**/*.css"
61
61
  ],
62
- "gitHead": "dcf802a75caf0201ac831826f611d24dbe508859"
62
+ "gitHead": "79b7a1a788658d921f399232fea33e3c40eb939f"
63
63
  }
@@ -12,6 +12,7 @@
12
12
  @use 'checkbox';
13
13
  @use 'code-snippet';
14
14
  @use 'combo-box';
15
+ @use 'contained-list';
15
16
  @use 'content-switcher';
16
17
  @use 'copy-button';
17
18
  @use 'data-table';
@@ -22,8 +23,10 @@
22
23
  @use 'date-picker';
23
24
  @use 'dropdown';
24
25
  @use 'file-uploader';
25
- @use 'fluid-text-input';
26
+ @use 'fluid-dropdown';
27
+ @use 'fluid-list-box';
26
28
  @use 'fluid-text-area';
29
+ @use 'fluid-text-input';
27
30
  @use 'form';
28
31
  @use 'inline-loading';
29
32
  @use 'link';
@@ -51,6 +51,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
51
51
  }
52
52
 
53
53
  .#{$prefix}--accordion__item {
54
+ display: list-item;
54
55
  overflow: visible;
55
56
  border-top: 1px solid $border-subtle;
56
57
  transition: all $duration-fast-02 motion(standard, productive);
@@ -102,6 +103,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
102
103
  // Size styles
103
104
  .#{$prefix}--accordion--lg .#{$prefix}--accordion__heading {
104
105
  min-height: convert.rem(48px);
106
+ align-items: center;
105
107
  }
106
108
 
107
109
  .#{$prefix}--accordion--sm .#{$prefix}--accordion__heading {
@@ -155,6 +157,7 @@ $content-padding: 0 0 0 $spacing-05 !default;
155
157
 
156
158
  z-index: 1;
157
159
  width: 100%;
160
+ padding-right: $spacing-05;
158
161
  margin: $title-margin;
159
162
  text-align: left;
160
163
  }
@@ -0,0 +1,174 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
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
+
8
+ @use '../../config' as *;
9
+ @use '../../motion' as *;
10
+ @use '../../spacing' as *;
11
+ @use '../../theme' as *;
12
+ @use '../../type' as *;
13
+ @use '../../utilities/convert' as *;
14
+ @use '../../utilities/focus-outline' as *;
15
+ @use '../../utilities/button-reset';
16
+
17
+ /// Contained List styles
18
+ /// @access public
19
+ /// @group contained-list
20
+ @mixin contained-list {
21
+ .#{$prefix}--contained-list__header {
22
+ position: sticky;
23
+ z-index: 1;
24
+ top: 0;
25
+ display: flex;
26
+ align-items: center;
27
+ padding-inline: $spacing-05;
28
+ }
29
+
30
+ .#{$prefix}--contained-list__label {
31
+ width: 100%;
32
+ }
33
+
34
+ // "On Page" variant
35
+
36
+ .#{$prefix}--contained-list--on-page + .#{$prefix}--contained-list--on-page {
37
+ margin-block-start: $spacing-05;
38
+ }
39
+
40
+ .#{$prefix}--contained-list--on-page .#{$prefix}--contained-list__header {
41
+ @include type-style('heading-compact-01');
42
+
43
+ height: $spacing-09;
44
+ border-bottom: 1px solid $border-subtle;
45
+ background-color: $background;
46
+ color: $text-primary;
47
+ }
48
+
49
+ .#{$prefix}--layer-two
50
+ .#{$prefix}--contained-list--on-page
51
+ .#{$prefix}--contained-list__header {
52
+ background-color: $layer-01;
53
+ }
54
+
55
+ .#{$prefix}--layer-three
56
+ .#{$prefix}--contained-list--on-page
57
+ .#{$prefix}--contained-list__header {
58
+ background-color: $layer-02;
59
+ }
60
+
61
+ // "Disclosed" variant
62
+
63
+ .#{$prefix}--contained-list--disclosed .#{$prefix}--contained-list__header {
64
+ @include type-style('label-01');
65
+
66
+ height: $spacing-07;
67
+ background-color: $layer;
68
+ color: $text-secondary;
69
+ }
70
+
71
+ // List item
72
+
73
+ .#{$prefix}--contained-list-item {
74
+ position: relative;
75
+ }
76
+
77
+ .#{$prefix}--contained-list-item:not(:first-of-type) {
78
+ margin-top: -1px;
79
+ }
80
+
81
+ .#{$prefix}--contained-list-item--clickable
82
+ .#{$prefix}--contained-list-item__content {
83
+ @include button-reset.reset;
84
+
85
+ text-align: start;
86
+ transition: background-color $duration-moderate-01
87
+ motion(standard, productive);
88
+ }
89
+
90
+ .#{$prefix}--contained-list-item__content,
91
+ .#{$prefix}--contained-list-item--clickable
92
+ .#{$prefix}--contained-list-item__content {
93
+ @include type-style('body-01');
94
+
95
+ padding: calc(#{$spacing-05} - #{rem(2px)}) $spacing-05;
96
+ color: $text-primary;
97
+ }
98
+
99
+ .#{$prefix}--contained-list-item:not(:last-of-type)::before {
100
+ position: absolute;
101
+ right: $spacing-05;
102
+ bottom: 0;
103
+ left: $spacing-05;
104
+ height: 1px;
105
+ background-color: $border-subtle;
106
+ content: '';
107
+ }
108
+
109
+ .#{$prefix}--contained-list-item--clickable
110
+ .#{$prefix}--contained-list-item__content:not(:disabled):hover {
111
+ background-color: $layer-hover;
112
+ }
113
+
114
+ .#{$prefix}--contained-list-item--clickable
115
+ .#{$prefix}--contained-list-item__content:not(:disabled):active {
116
+ background-color: $layer-active;
117
+ }
118
+
119
+ .#{$prefix}--contained-list-item--clickable
120
+ .#{$prefix}--contained-list-item__content:disabled {
121
+ color: $text-disabled;
122
+ cursor: not-allowed;
123
+ }
124
+
125
+ .#{$prefix}--contained-list-item--clickable
126
+ .#{$prefix}--contained-list-item__content:focus {
127
+ outline: none;
128
+ }
129
+
130
+ .#{$prefix}--contained-list-item--clickable
131
+ .#{$prefix}--contained-list-item__content:focus::after {
132
+ @include focus-outline('outline');
133
+
134
+ position: absolute;
135
+ top: 0;
136
+ right: 0;
137
+ bottom: 0;
138
+ left: 0;
139
+ content: '';
140
+ }
141
+
142
+ .#{$prefix}--contained-list-item--with-action
143
+ .#{$prefix}--contained-list-item__content {
144
+ padding-inline-end: $spacing-10;
145
+ }
146
+
147
+ .#{$prefix}--contained-list__action,
148
+ .#{$prefix}--contained-list-item__action {
149
+ position: absolute;
150
+ top: 0;
151
+ right: 0;
152
+ left: 0;
153
+ display: flex;
154
+ justify-content: flex-end;
155
+ pointer-events: none;
156
+ }
157
+
158
+ .#{$prefix}--contained-list__action > *,
159
+ .#{$prefix}--contained-list-item__action > * {
160
+ pointer-events: all;
161
+ }
162
+
163
+ .#{$prefix}--contained-list-item--with-icon
164
+ .#{$prefix}--contained-list-item__content {
165
+ display: grid;
166
+ column-gap: $spacing-04;
167
+ grid-template-columns: 1rem 1fr;
168
+ }
169
+
170
+ .#{$prefix}--contained-list-item__icon {
171
+ display: inline-flex;
172
+ padding-top: $spacing-01;
173
+ }
174
+ }
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
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
+
8
+ @forward 'contained-list';
9
+ @use 'contained-list';
10
+
11
+ @include contained-list.contained-list;
@@ -32,6 +32,7 @@
32
32
  }
33
33
 
34
34
  .#{$prefix}--data-table-content {
35
+ display: block;
35
36
  overflow-x: auto;
36
37
  }
37
38
 
@@ -414,7 +414,10 @@
414
414
  }
415
415
 
416
416
  .#{$prefix}--action-list .#{$prefix}--btn:disabled {
417
- color: $text-on-color-disabled;
417
+ border-color: transparent;
418
+ background-color: transparent;
419
+ color: $text-on-color;
420
+ opacity: 0.5;
418
421
  }
419
422
 
420
423
  .#{$prefix}--action-list .#{$prefix}--btn .#{$prefix}--btn__icon {
@@ -0,0 +1,22 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
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
+
8
+ //-----------------------------
9
+ // Fluid Dropdown
10
+ //-----------------------------
11
+ @use '../../config' as *;
12
+ @use '../../motion' as *;
13
+ @use '../../spacing' as *;
14
+ @use '../../theme' as *;
15
+ @use '../../utilities/convert' as *;
16
+ @use '../../utilities/focus-outline' as *;
17
+ @use '../dropdown';
18
+ @use '../fluid-list-box';
19
+
20
+ @mixin fluid-dropdown {
21
+ // Style overrides can be added here as needed
22
+ }
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
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
+
8
+ @forward 'fluid-dropdown';
9
+ @use 'fluid-dropdown';
10
+
11
+ @include fluid-dropdown.fluid-dropdown;
@@ -0,0 +1,217 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
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
+
8
+ //-----------------------------
9
+ // Fluid List-box
10
+ //-----------------------------
11
+ @use '../../config' as *;
12
+ @use '../../motion' as *;
13
+ @use '../../spacing' as *;
14
+ @use '../../theme' as *;
15
+ @use '../../utilities/convert' as *;
16
+ @use '../../utilities/focus-outline' as *;
17
+ @use '../../utilities/skeleton' as *;
18
+
19
+ @mixin fluid-list-box {
20
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper {
21
+ position: relative;
22
+ height: 100%;
23
+ background: $field;
24
+ transition: background-color $duration-fast-01 motion(standard, productive),
25
+ outline $duration-fast-01 motion(standard, productive);
26
+ }
27
+
28
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box {
29
+ min-height: rem(64px);
30
+ padding: 0;
31
+ }
32
+
33
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--label {
34
+ position: absolute;
35
+ z-index: 1;
36
+ top: rem(13px);
37
+ left: $spacing-05;
38
+ display: flex;
39
+ height: rem(16px);
40
+ align-items: center;
41
+ margin: 0;
42
+ }
43
+
44
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__field {
45
+ padding-top: rem(33px);
46
+ padding-bottom: rem(13px);
47
+ padding-left: $spacing-05;
48
+ }
49
+
50
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__menu-icon {
51
+ width: 1rem;
52
+ height: 1rem;
53
+ }
54
+
55
+ .#{$prefix}--list-box__wrapper--fluid:not(.#{$prefix}--list-box__wrapper--fluid--condensed)
56
+ .#{$prefix}--list-box__menu-item {
57
+ height: $spacing-10;
58
+ }
59
+
60
+ .#{$prefix}--list-box__wrapper--fluid:not(.#{$prefix}--list-box__wrapper--fluid--condensed)
61
+ .#{$prefix}--list-box__menu-item__selected-icon {
62
+ top: rem(20px);
63
+ }
64
+
65
+ // Disabled styles
66
+ .#{$prefix}--list-box__wrapper--fluid
67
+ .#{$prefix}--label--disabled
68
+ .#{$prefix}--toggletip-label {
69
+ color: $text-disabled;
70
+ }
71
+
72
+ .#{$prefix}--list-box__wrapper--fluid
73
+ .#{$prefix}--label--disabled
74
+ .#{$prefix}--toggletip-button {
75
+ cursor: not-allowed;
76
+ pointer-events: none;
77
+ }
78
+
79
+ .#{$prefix}--list-box__wrapper--fluid
80
+ .#{$prefix}--label--disabled
81
+ .#{$prefix}--toggletip-button
82
+ svg {
83
+ fill: $icon-disabled;
84
+ }
85
+
86
+ // Focus styles
87
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--focus {
88
+ @include focus-outline('outline');
89
+
90
+ outline-offset: 0;
91
+ }
92
+
93
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__field:focus {
94
+ outline: none;
95
+ outline-offset: 0;
96
+ }
97
+
98
+ // Invalid / Warning styles
99
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid:not(.#{$prefix}--list-box__wrapper--fluid--focus) {
100
+ @include focus-outline('invalid');
101
+
102
+ outline-offset: 0;
103
+ }
104
+
105
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--focus
106
+ .#{$prefix}--list-box:not(.#{$prefix}--list-box--invalid) {
107
+ border-bottom: 1px solid transparent;
108
+ }
109
+
110
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
111
+ .#{$prefix}--list-box,
112
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
113
+ .#{$prefix}--list-box__field:focus {
114
+ outline: none;
115
+ outline-offset: 0;
116
+ }
117
+
118
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid:focus-within {
119
+ outline-offset: 0;
120
+ }
121
+
122
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
123
+ .#{$prefix}--list-box,
124
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box--warning {
125
+ border-bottom: 1px solid transparent;
126
+ }
127
+
128
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
129
+ .#{$prefix}--form-requirement,
130
+ .#{$prefix}--list-box__wrapper--fluid
131
+ .#{$prefix}--list-box--warning
132
+ ~ .#{$prefix}--form-requirement {
133
+ padding: rem(8px) 4rem rem(8px) $spacing-05;
134
+ margin-top: 0;
135
+ }
136
+
137
+ .#{$prefix}--list-box__wrapper--fluid.#{$prefix}--list-box__wrapper--fluid--invalid
138
+ .#{$prefix}--list-box__invalid-icon,
139
+ .#{$prefix}--list-box__wrapper--fluid
140
+ .#{$prefix}--list-box--warning
141
+ .#{$prefix}--list-box__invalid-icon {
142
+ top: rem(81px);
143
+ right: $spacing-05;
144
+ pointer-events: none;
145
+ }
146
+
147
+ // Error + Warning divider
148
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__divider {
149
+ display: none;
150
+ transition: border-color $duration-fast-01 motion(standard, productive);
151
+ }
152
+
153
+ .#{$prefix}--list-box__wrapper--fluid
154
+ .#{$prefix}--list-box--invalid
155
+ ~ .#{$prefix}--list-box__divider,
156
+ .#{$prefix}--list-box__wrapper--fluid
157
+ .#{$prefix}--list-box--warning
158
+ ~ .#{$prefix}--list-box__divider {
159
+ display: block;
160
+ border: none;
161
+ border-bottom: 1px solid $border-subtle;
162
+ margin: 0 1rem;
163
+ }
164
+
165
+ .#{$prefix}--list-box__wrapper--fluid
166
+ .#{$prefix}--list-box--invalid:hover
167
+ ~ .#{$prefix}--list-box__divider,
168
+ .#{$prefix}--list-box__wrapper--fluid
169
+ .#{$prefix}--list-box--warning:hover
170
+ ~ .#{$prefix}--list-box__divider {
171
+ border-color: transparent;
172
+ }
173
+
174
+ // direction - top
175
+ .#{$prefix}--list-box__wrapper--fluid
176
+ .#{$prefix}--list-box--up
177
+ .#{$prefix}--list-box__menu {
178
+ bottom: $spacing-10;
179
+ }
180
+
181
+ // Skeleton styles
182
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--skeleton {
183
+ border-bottom: 1px solid $skeleton-element;
184
+ background: $skeleton-background;
185
+ }
186
+
187
+ .#{$prefix}--list-box__wrapper--fluid
188
+ .#{$prefix}--skeleton
189
+ .#{$prefix}--list-box__field {
190
+ position: absolute;
191
+ bottom: rem(13px);
192
+ left: $spacing-05;
193
+ width: 50%;
194
+ height: $spacing-05;
195
+ padding: 0;
196
+ }
197
+
198
+ .#{$prefix}--list-box__wrapper--fluid
199
+ .#{$prefix}--skeleton
200
+ .#{$prefix}--list-box__label {
201
+ position: absolute;
202
+ top: rem(13px);
203
+ left: $spacing-05;
204
+ width: 25%;
205
+ height: $spacing-05;
206
+ }
207
+
208
+ .#{$prefix}--list-box__wrapper--fluid
209
+ .#{$prefix}--skeleton
210
+ .#{$prefix}--list-box__field,
211
+ .#{$prefix}--list-box__wrapper--fluid
212
+ .#{$prefix}--skeleton
213
+ .#{$prefix}--list-box__label {
214
+ animation: 3000ms ease-in-out skeleton infinite;
215
+ background: $skeleton-element;
216
+ }
217
+ }
@@ -0,0 +1,11 @@
1
+ //
2
+ // Copyright IBM Corp. 2022
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
+
8
+ @forward 'fluid-list-box';
9
+ @use 'fluid-list-box';
10
+
11
+ @include fluid-list-box.fluid-list-box;
@@ -141,4 +141,25 @@
141
141
  width: rem(32px);
142
142
  height: rem(32px);
143
143
  }
144
+
145
+ // Skeleton
146
+ .#{$prefix}--text-input--fluid__skeleton {
147
+ position: relative;
148
+ height: 100%;
149
+ padding: $spacing-05;
150
+ border-bottom: 1px solid $skeleton-element;
151
+ background: $skeleton-background;
152
+ }
153
+
154
+ .#{$prefix}--text-input--fluid__skeleton .#{$prefix}--skeleton {
155
+ height: 0.5rem;
156
+ }
157
+
158
+ .#{$prefix}--text-input--fluid__skeleton .#{$prefix}--label {
159
+ margin-bottom: $spacing-04;
160
+ }
161
+
162
+ .#{$prefix}--text-input--fluid__skeleton .#{$prefix}--text-input {
163
+ width: 80%;
164
+ }
144
165
  }
@@ -812,6 +812,7 @@ $list-box-menu-width: rem(300px);
812
812
  .#{$prefix}--list-box input[type='text'] {
813
813
  min-width: 0;
814
814
  background-color: inherit;
815
+ text-overflow: ellipsis;
815
816
  }
816
817
 
817
818
  // Windows HCM fix
@@ -46,6 +46,7 @@
46
46
 
47
47
  .#{$prefix}--menu-option {
48
48
  position: relative;
49
+ display: list-item;
49
50
  // $size-sm
50
51
  height: 2rem;
51
52
  background-color: $layer;
@@ -123,6 +124,7 @@
123
124
  }
124
125
 
125
126
  .#{$prefix}--menu-divider {
127
+ display: list-item;
126
128
  width: 100%;
127
129
  height: 1px;
128
130
  margin: $spacing-02 0;
@@ -62,9 +62,15 @@
62
62
  .#{$prefix}--dropdown-list,
63
63
  .#{$prefix}--number input[type='number'],
64
64
  .#{$prefix}--date-picker__input,
65
- .#{$prefix}--multi-select {
65
+ .#{$prefix}--multi-select,
66
+ .#{$prefix}--number__control-btn::before,
67
+ .#{$prefix}--number__control-btn::after {
66
68
  background-color: $field-02;
67
69
  }
70
+
71
+ .#{$prefix}--number__rule-divider {
72
+ background-color: $border-subtle-02;
73
+ }
68
74
  }
69
75
 
70
76
  .#{$prefix}--modal.is-visible .#{$prefix}--modal-container {
@@ -372,8 +378,10 @@
372
378
  overflow: hidden;
373
379
  }
374
380
 
375
- .#{$prefix}--body--with-modal-open .#{$prefix}--tooltip,
376
- .#{$prefix}--body--with-modal-open .#{$prefix}--overflow-menu-options {
381
+ .#{$prefix}--body--with-modal-open .#{$prefix}--modal .#{$prefix}--tooltip,
382
+ .#{$prefix}--body--with-modal-open
383
+ .#{$prefix}--modal
384
+ .#{$prefix}--overflow-menu-options {
377
385
  z-index: z('modal');
378
386
  }
379
387
 
@@ -106,21 +106,23 @@ $progress-indicator-bar-width: 1px inset transparent !default;
106
106
  cursor: pointer;
107
107
  }
108
108
 
109
- .#{$prefix}--progress-label:focus {
110
- box-shadow: 0 rem(3px) 0 0 $link-primary;
111
- color: $link-primary;
112
- outline: none;
113
- }
114
-
115
109
  .#{$prefix}--progress--space-equal .#{$prefix}--progress-label {
116
110
  max-width: 100%;
117
111
  margin-right: 0.75rem;
118
112
  }
119
113
 
120
- .#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable)
114
+ .#{$prefix}--progress-step-button:not(.#{$prefix}--progress-step-button--unclickable) {
115
+ &:focus {
116
+ outline: none;
117
+ }
118
+ &:focus-visible .#{$prefix}--progress-label {
119
+ color: $focus;
120
+ outline: rem(1px) solid $focus;
121
+ }
121
122
  .#{$prefix}--progress-label:active {
122
- box-shadow: 0 rem(3px) 0 0 $text-primary;
123
- color: $text-primary;
123
+ box-shadow: 0 rem(1px) 0 0 $text-primary;
124
+ color: $text-primary;
125
+ }
124
126
  }
125
127
 
126
128
  //OVERFLOW STYLING
@@ -246,12 +248,6 @@ $progress-indicator-bar-width: 1px inset transparent !default;
246
248
  cursor: not-allowed;
247
249
  }
248
250
 
249
- .#{$prefix}--progress-label:focus,
250
- .#{$prefix}--progress-label:active {
251
- box-shadow: none;
252
- outline: none;
253
- }
254
-
255
251
  .#{$prefix}--progress-line {
256
252
  cursor: not-allowed;
257
253
  }
@@ -21,6 +21,7 @@
21
21
  /// @group toggle
22
22
  @mixin toggle {
23
23
  .#{$prefix}--toggle {
24
+ display: inline-block;
24
25
  user-select: none;
25
26
  }
26
27
 
@@ -41,7 +42,7 @@
41
42
  }
42
43
 
43
44
  .#{$prefix}--toggle__appearance {
44
- display: grid;
45
+ display: inline-grid;
45
46
  align-items: center;
46
47
  column-gap: $spacing-03;
47
48
  cursor: pointer;