|
12 | 12 | */
|
13 | 13 |
|
14 | 14 | .spectrum-ClearButton {
|
15 |
| - --spectrum-clear-button-background-color: transparent; |
16 |
| - --spectrum-clear-button-background-color-hover: transparent; |
17 |
| - --spectrum-clear-button-background-color-down: transparent; |
18 |
| - --spectrum-clear-button-background-color-key-focus: transparent; |
19 |
| - |
20 | 15 | --spectrum-clear-button-height: var(--spectrum-component-height-100);
|
21 | 16 | --spectrum-clear-button-width: var(--spectrum-component-height-100);
|
22 | 17 | --spectrum-clear-button-padding: var(--spectrum-in-field-button-edge-to-fill);
|
|
26 | 21 | --spectrum-clear-button-icon-color-down: var(--spectrum-neutral-content-color-down);
|
27 | 22 | --spectrum-clear-button-icon-color-key-focus: var(--spectrum-neutral-content-color-key-focus);
|
28 | 23 |
|
29 |
| - block-size: var(--mod-clear-button-height, var(--spectrum-clear-button-height)); |
30 |
| - inline-size: var(--mod-clear-button-width, var(--spectrum-clear-button-width)); |
31 |
| - border-radius: 100%; |
32 |
| - |
33 |
| - background-color: var(--mod-clear-button-background-color, transparent); |
34 |
| - margin: 0; |
35 |
| - padding: var(--mod-clear-button-padding, var(--spectrum-clear-button-padding)); |
| 24 | + --spectrum-clear-button-background-color: transparent; |
| 25 | + --spectrum-clear-button-background-color-hover: transparent; |
| 26 | + --spectrum-clear-button-background-color-down: transparent; |
| 27 | + --spectrum-clear-button-background-color-key-focus: transparent; |
36 | 28 |
|
37 |
| - border: none; |
38 |
| - color: var(--mod-clear-button-icon-color, var(--spectrum-clear-button-icon-color)); |
| 29 | + &.spectrum-ClearButton--staticWhite { |
| 30 | + --spectrum-clear-button-background-color-hover: var(--spectrum-transparent-white-400); |
| 31 | + --spectrum-clear-button-background-color-down: var(--spectrum-transparent-white-500); |
| 32 | + --spectrum-clear-button-background-color-key-focus: var(--spectrum-transparent-white-400); |
| 33 | + } |
39 | 34 |
|
40 | 35 | &.spectrum-ClearButton--sizeS {
|
41 | 36 | --spectrum-clear-button-height: var(--spectrum-component-height-75);
|
|
80 | 75 | --mod-clear-button-icon-color-down: var(--spectrum-disabled-content-color);
|
81 | 76 | --mod-clear-button-background-color: var(--mod-clear-button-background-color-disabled, transparent);
|
82 | 77 | }
|
| 78 | +} |
| 79 | + |
| 80 | +.spectrum-ClearButton { |
| 81 | + block-size: var(--mod-clear-button-height, var(--spectrum-clear-button-height)); |
| 82 | + inline-size: var(--mod-clear-button-width, var(--spectrum-clear-button-width)); |
| 83 | + border-radius: 100%; |
| 84 | + |
| 85 | + background-color: var(--mod-clear-button-background-color, transparent); |
| 86 | + margin: 0; |
| 87 | + padding: var(--mod-clear-button-padding, var(--spectrum-clear-button-padding)); |
| 88 | + |
| 89 | + border: none; |
| 90 | + color: var(--mod-clear-button-icon-color, var(--spectrum-clear-button-icon-color)); |
83 | 91 |
|
84 | 92 | &:not(:disabled) {
|
85 | 93 | cursor: pointer;
|
|
0 commit comments