|
10 | 10 | @media #{$p-breakpoints-md-down} { |
11 | 11 | max-width: 100%; |
12 | 12 | overflow: hidden; |
13 | | - height: 56px; |
| 13 | + height: unset; |
14 | 14 | padding: 0; |
15 | | - |
16 | | - #{$se23} & { |
17 | | - height: unset; |
18 | | - } |
19 | 15 | } |
20 | 16 | } |
21 | 17 |
|
22 | 18 | .Wrapper { |
23 | 19 | @media #{$p-breakpoints-md-down} { |
24 | 20 | overflow: auto; |
25 | 21 | -webkit-overflow-scrolling: touch; |
26 | | - padding: var(--p-space-3) var(--p-space-3) var(--p-space-3) var(--p-space-4); |
27 | | - |
28 | | - #{$se23} & { |
29 | | - padding: var(--p-space-2); |
30 | | - } |
| 22 | + padding: var(--p-space-2); |
31 | 23 | } |
32 | 24 | } |
33 | 25 |
|
|
65 | 57 |
|
66 | 58 | .Tab { |
67 | 59 | // stylelint-disable-next-line -- no way to set focus ring without mixin currently |
68 | | - @include focus-ring; |
| 60 | + @include focus-ring($size: 'wide'); |
69 | 61 | // stylelint-disable-next-line -- required to reset button styles on touch screens |
70 | 62 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); |
71 | 63 | position: relative; |
72 | 64 | display: inline-flex; |
73 | 65 | justify-content: center; |
74 | 66 | align-items: center; |
75 | | - height: var(--p-space-8); |
76 | | - padding: 0 var(--p-space-3); |
| 67 | + height: 2rem; |
| 68 | + padding: var(--p-space-1_5-experimental) var(--p-space-3); |
77 | 69 | border: 0; |
78 | | - border-radius: var(--p-border-radius-1); |
79 | | - background: var(--p-color-bg); |
80 | | - color: var(--p-color-text-subdued); |
| 70 | + border-radius: var(--p-border-radius-2); |
| 71 | + background-color: transparent; |
| 72 | + color: var(--p-color-text-primary); |
81 | 73 | cursor: pointer; |
82 | 74 | text-decoration: none; |
83 | 75 | width: 100%; |
|
91 | 83 | &[aria-disabled='true'] { |
92 | 84 | cursor: default; |
93 | 85 | color: var(--p-color-text-disabled); |
| 86 | + |
| 87 | + path { |
| 88 | + fill: var(--p-color-icon-disabled); |
| 89 | + } |
| 90 | + } |
| 91 | + |
| 92 | + &:not([aria-disabled='true']):hover { |
| 93 | + background-color: var(--p-color-bg-transparent-hover-experimental); |
| 94 | + color: var(--p-color-text-primary); |
94 | 95 | } |
95 | 96 |
|
96 | | - &:not([aria-disabled='true']):hover, |
97 | 97 | &:not([aria-disabled='true']):focus { |
98 | 98 | background-color: var(--p-color-bg-hover); |
99 | 99 | color: var(--p-color-text); |
100 | 100 | } |
101 | 101 |
|
| 102 | + &:not([aria-disabled='true']):focus-visible { |
| 103 | + background-color: transparent; |
| 104 | + color: var(--p-color-text-primary); |
| 105 | + // stylelint-disable-next-line -- set focus ring using mixin |
| 106 | + @include focus-ring($size: 'wide', $style: 'focused'); |
| 107 | + } |
| 108 | + |
102 | 109 | // stylelint-disable-next-line selector-max-specificity -- specificity required to override focus ring |
103 | 110 | &:not([aria-disabled='true']):focus-visible:not(:active) { |
104 | 111 | // stylelint-disable-next-line -- no way to set focus ring without mixin currently |
|
107 | 114 | } |
108 | 115 |
|
109 | 116 | &:not([aria-disabled='true']):active { |
110 | | - background-color: var(--p-color-bg-active); |
111 | | - color: var(--p-color-text); |
| 117 | + background-color: var(--p-color-bg-secondary-experimental); |
| 118 | + color: var(--p-color-text-primary); |
112 | 119 | z-index: var(--p-z-index-1); |
113 | 120 | } |
114 | 121 |
|
115 | 122 | path { |
116 | 123 | fill: currentColor; |
117 | 124 | } |
118 | 125 |
|
119 | | - &[aria-disabled='true'] path { |
120 | | - fill: var(--p-color-icon-disabled); |
121 | | - } |
122 | | - |
123 | | - #{$se23} & { |
124 | | - // stylelint-disable-next-line -- no way to set focus ring without mixin currently |
125 | | - @include focus-ring($size: 'wide'); |
126 | | - color: var(--p-color-text-primary); |
127 | | - background-color: transparent; |
128 | | - border-radius: var(--p-border-radius-2); |
129 | | - padding: var(--p-space-1_5-experimental) var(--p-space-3); |
130 | | - height: 2rem; |
131 | | - |
132 | | - &[aria-disabled='true'] { |
133 | | - color: var(--p-color-text-disabled); |
134 | | - } |
135 | | - |
136 | | - &:not([aria-disabled='true']):hover { |
137 | | - background-color: var(--p-color-bg-transparent-hover-experimental); |
138 | | - color: var(--p-color-text-primary); |
139 | | - } |
140 | | - |
141 | | - &:not([aria-disabled='true']):focus-visible { |
142 | | - background-color: transparent; |
143 | | - color: var(--p-color-text-primary); |
144 | | - // stylelint-disable-next-line -- sshhh |
145 | | - @include focus-ring($size: 'wide', $style: 'focused'); |
146 | | - } |
147 | | - |
148 | | - &:not([aria-disabled='true']):active { |
149 | | - background-color: var(--p-color-bg-secondary-experimental); |
150 | | - color: var(--p-color-text-primary); |
151 | | - z-index: var(--p-z-index-1); |
152 | | - } |
153 | | - |
154 | | - @media #{$p-breakpoints-md-up} { |
155 | | - font-size: var(--p-font-size-75); |
156 | | - line-height: var(--p-font-line-height-1); |
157 | | - height: 1.75rem; |
158 | | - } |
| 126 | + @media #{$p-breakpoints-md-up} { |
| 127 | + font-size: var(--p-font-size-75); |
| 128 | + line-height: var(--p-font-line-height-1); |
| 129 | + height: 1.75rem; |
159 | 130 | } |
160 | 131 | } |
161 | 132 |
|
162 | 133 | .Tab-active { |
163 | | - background: var(--p-color-bg-primary-subdued-hover); |
164 | | - color: var(--p-color-text-primary); |
| 134 | + background: var(--p-color-bg-transparent-active-experimental); |
| 135 | + border-radius: var(--p-border-radius-2); |
| 136 | + color: var(--p-color-text); |
165 | 137 |
|
166 | 138 | &[aria-disabled='true'] { |
167 | 139 | background: var(--p-color-bg-disabled); |
|
170 | 142 |
|
171 | 143 | &:not([aria-disabled='true']):hover, |
172 | 144 | &:not([aria-disabled='true']):focus { |
173 | | - background-color: var(--p-color-bg-primary-subdued-hover); |
174 | | - color: var(--p-color-text-primary-hover); |
| 145 | + background-color: var(--p-color-bg-transparent-hover-experimental); |
| 146 | + color: var(--p-color-text-primary); |
175 | 147 | } |
176 | 148 |
|
177 | 149 | &:not([aria-disabled='true']):active { |
178 | | - background-color: var(--p-color-bg-success-subdued-active); |
| 150 | + background-color: var(--p-color-bg-transparent-active-experimental); |
179 | 151 | color: var(--p-color-text-primary); |
180 | 152 | } |
181 | | - |
182 | | - #{$se23} & { |
183 | | - background: var(--p-color-bg-transparent-active-experimental); |
184 | | - color: var(--p-color-text); |
185 | | - border-radius: var(--p-border-radius-2); |
186 | | - |
187 | | - &[aria-disabled='true'] { |
188 | | - background: var(--p-color-bg-disabled); |
189 | | - color: var(--p-color-text-disabled); |
190 | | - } |
191 | | - |
192 | | - &:not([aria-disabled='true']):hover, |
193 | | - &:not([aria-disabled='true']):focus { |
194 | | - background-color: var(--p-color-bg-transparent-hover-experimental); |
195 | | - color: var(--p-color-text-primary); |
196 | | - } |
197 | | - |
198 | | - &:not([aria-disabled='true']):active { |
199 | | - background-color: var(--p-color-bg-transparent-active-experimental); |
200 | | - } |
201 | | - } |
202 | 153 | } |
203 | 154 |
|
204 | 155 | .Tab-hasActions { |
205 | 156 | padding-right: var(--p-space-2); |
206 | | - |
207 | | - #{$se23} & { |
208 | | - padding-right: var(--p-space-2); |
209 | | - } |
210 | 157 | } |
211 | 158 |
|
212 | 159 | .Tab-iconOnly { |
|
299 | 246 | @include unstyled-button; |
300 | 247 | height: 100%; |
301 | 248 | background-color: transparent; |
302 | | - color: var(--p-color-text-subdued); |
| 249 | + color: var(--p-color-text-primary); |
303 | 250 | display: flex; |
304 | 251 | align-items: center; |
305 | 252 | justify-content: center; |
306 | 253 | cursor: pointer; |
307 | | - border-radius: var(--p-border-radius-1); |
| 254 | + border-radius: var(--p-border-radius-2); |
308 | 255 | padding: 0 var(--p-space-2) 0 var(--p-space-3); |
309 | 256 | margin-top: var(--p-space-025); |
310 | 257 | border: none; |
311 | 258 | outline: none; |
312 | 259 |
|
| 260 | + svg { |
| 261 | + fill: var(--p-color-icon); |
| 262 | + } |
| 263 | + |
313 | 264 | &:hover svg, |
314 | 265 | &:focus svg { |
315 | 266 | fill: var(--p-color-icon); |
316 | 267 | } |
317 | 268 |
|
318 | | - &:not([aria-disabled='true']):hover, |
| 269 | + &:not([aria-disabled='true']):hover { |
| 270 | + background-color: var(--p-color-bg-transparent-hover-experimental); |
| 271 | + color: var(--p-color-text-primary); |
| 272 | + } |
| 273 | + |
319 | 274 | &:not([aria-disabled='true']):focus { |
320 | | - background-color: var(--p-color-bg-hover); |
| 275 | + background-color: transparent; |
| 276 | + color: var(--p-color-text-primary); |
321 | 277 | } |
322 | 278 |
|
323 | 279 | &:not([aria-disabled='true']):focus-visible { |
|
327 | 283 | } |
328 | 284 |
|
329 | 285 | &:not([aria-disabled='true']):active { |
330 | | - background-color: var(--p-color-bg-active); |
| 286 | + background-color: var(--p-color-bg-secondary-experimental); |
331 | 287 | z-index: var(--p-z-index-1); |
332 | 288 | } |
333 | 289 |
|
334 | 290 | &[aria-disabled='true'] { |
335 | 291 | cursor: default; |
336 | 292 | color: var(--p-color-text-disabled); |
| 293 | + background: var(--p-color-bg-disabled); |
337 | 294 |
|
338 | 295 | path { |
339 | 296 | fill: var(--p-color-icon-disabled); |
340 | 297 | } |
341 | 298 | } |
342 | | - |
343 | | - #{$se23} & { |
344 | | - background-color: transparent; |
345 | | - color: var(--p-color-text-primary); |
346 | | - border-radius: var(--p-border-radius-2); |
347 | | - |
348 | | - // stylelint-disable-next-line selector-max-combinators -- Polaris component experimental styles |
349 | | - svg { |
350 | | - fill: var(--p-color-icon); |
351 | | - } |
352 | | - |
353 | | - &[aria-disabled='true'] { |
354 | | - background: var(--p-color-bg-disabled); |
355 | | - color: var(--p-color-text-disabled); |
356 | | - } |
357 | | - |
358 | | - &:not([aria-disabled='true']):hover { |
359 | | - background-color: var(--p-color-bg-transparent-hover-experimental); |
360 | | - color: var(--p-color-text-primary); |
361 | | - } |
362 | | - |
363 | | - &:not([aria-disabled='true']):focus { |
364 | | - background-color: transparent; |
365 | | - color: var(--p-color-text-primary); |
366 | | - } |
367 | | - |
368 | | - &:not([aria-disabled='true']):active { |
369 | | - background-color: var(--p-color-bg-secondary-experimental); |
370 | | - } |
371 | | - } |
372 | 299 | } |
373 | 300 |
|
374 | 301 | .TabsMeasurer { |
|
0 commit comments