|
54 | 54 | /* Font */
|
55 | 55 | --spectrum-checkbox-line-height: var(--spectrum-line-height-100);
|
56 | 56 | --spectrum-checkbox-line-height-cjk: var(--spectrum-cjk-line-height-100);
|
| 57 | + --spectrum-checkbox-text-font-weight: var(--spectrum-regular-font-weight); |
| 58 | + --spectrum-checkbox-text-font-style: var(--spectrum-default-font-style); |
57 | 59 |
|
| 60 | + /* Size */ |
| 61 | + --spectrum-checkbox-height: var(--spectrum-component-height-100); |
| 62 | + --spectrum-checkbox-control-size: var(--spectrum-checkbox-control-size-medium); |
| 63 | + --spectrum-checkbox-control-corner-radius: var(--spectrum-corner-radius-small-size-medium); |
58 | 64 |
|
59 | 65 | --spectrum-checkbox-focus-indicator-gap: var(--spectrum-focus-indicator-gap);
|
60 | 66 | --spectrum-checkbox-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness);
|
|
63 | 69 | --spectrum-checkbox-selected-border-width: calc(var(--spectrum-checkbox-control-size) / 2);
|
64 | 70 |
|
65 | 71 | --spectrum-checkbox-animation-duration: var(--spectrum-animation-duration-100);
|
| 72 | + |
| 73 | + /* CJK (Chinese, Japanese, and Korean) language support */ |
| 74 | + &:lang(ja), |
| 75 | + &:lang(zh), |
| 76 | + &:lang(ko) { |
| 77 | + line-height: var(--mod-checkbox-line-height-cjk, var(--spectrum-checkbox-line-height-cjk)); |
| 78 | + } |
66 | 79 | }
|
67 | 80 |
|
68 | 81 | .spectrum-Checkbox,
|
|
161 | 174 |
|
162 | 175 | &:not(.is-readOnly):active {
|
163 | 176 | .spectrum-Checkbox-input:not(:disabled) + .spectrum-Checkbox-box {
|
164 |
| - transform: perspective(var(--spectrum-component-size-minimum-perspective-down)) translateZ(var(--spectrum-component-size-difference-down)) scale(var(--spectrum-component-size-width-ratio-down), var(--spectrum-component-size-width-ratio-down)); |
| 177 | + transform: perspective(var(--spectrum-component-size-minimum-perspective-down)) translateZ(var(--spectrum-component-size-difference-down)); |
165 | 178 | }
|
166 | 179 | }
|
167 | 180 |
|
|
182 | 195 | }
|
183 | 196 |
|
184 | 197 | &:hover {
|
185 |
| - .spectrum-Checkbox-input:checked + .spectrum-Checkbox-box, |
186 |
| - .spectrum-Checkbox-box::before { |
| 198 | + .spectrum-Checkbox-input:checked + .spectrum-Checkbox-box::before { |
187 | 199 | border-color: var(--highcontrast-checkbox-color-hover, var(--mod-checkbox-invalid-color-hover, var(--spectrum-checkbox-invalid-color-hover)));
|
188 | 200 | }
|
189 | 201 | }
|
|
365 | 377 | margin-block-end: var(--mod-checkbox-bottom-to-text, var(--spectrum-checkbox-bottom-to-text));
|
366 | 378 |
|
367 | 379 | font-size: var(--mod-checkbox-font-size, var(--spectrum-checkbox-font-size));
|
368 |
| - |
369 |
| - /* TODO Use font-weight and font-style tokens */ |
370 |
| - /* font-weight: var(--spectrum-checkbox-text-font-weight); */ |
371 |
| - /* font-style: var(--spectrum-checkbox-text-font-style); */ |
| 380 | + font-weight: var(--spectrum-checkbox-text-font-weight); |
| 381 | + font-style: var(--spectrum-checkbox-text-font-style); |
372 | 382 |
|
373 | 383 | transition: color var(--mod-checkbox-animation-duration, var(--spectrum-checkbox-animation-duration)) ease-in-out;
|
374 | 384 |
|
375 | 385 | line-height: var(--mod-checkbox-line-height, var(--spectrum-checkbox-line-height));
|
376 |
| - |
377 |
| - &:lang(ja), |
378 |
| - &:lang(zh), |
379 |
| - &:lang(ko) { |
380 |
| - line-height: var(--mod-checkbox-line-height-cjk, var(--spectrum-checkbox-line-height-cjk)); |
381 |
| - } |
382 | 386 | }
|
383 | 387 |
|
384 | 388 | /**
|
|
0 commit comments