Skip to content

Commit 1042098

Browse files
committed
chore(clear button): update changelog
1 parent 92bb839 commit 1042098

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/silly-donkeys-remember.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,9 @@
33
---
44

55
Improves the visibility of the clear button disabled variant on static color backgrounds by more closely aligning styles with close button.
6+
7+
- Adds `.spectrum-ClearButton--staticWhite` to the mod declarations associated with `.spectrum-ClearButton--overBackground` in advance of the latter being deprecated. The same class has been added to the `:focus` declaration for `spectrum-ClearButton--overBackground`.
8+
- Adds `--spectrum-clear-button-icon-color-disabled: var(--spectrum-disabled-static-white-content-color);` custom property for `.spectrum-ClearButton--staticWhite`.
9+
- Enables `cursor: pointer` for `.spectrum-ClearButton` when it is not disabled.
10+
- Disables hover, active, focus and focus-within states for `:disabled` `.spectrum-ClearButton` elements.
11+
- Adds color styles for `:disabled` and `.is-disabled` `.spectrum-ClearButton` `:disabled` icons.

components/clearbutton/index.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
--mod-clear-button-background-color-key-focus: transparent;
4747
}
4848

49+
/* @deprecated .spectrum-ClearButton--overBackground */
4950
&.spectrum-ClearButton--staticWhite,
5051
&.spectrum-ClearButton--overBackground {
5152
--mod-clear-button-icon-color: var(--spectrum-white);
@@ -139,6 +140,7 @@
139140
justify-content: center;
140141
}
141142

143+
/* @deprecated .spectrum-ClearButton--overBackground */
142144
.spectrum-ClearButton--staticWhite,
143145
.spectrum-ClearButton--overBackground {
144146
&:focus-visible {

0 commit comments

Comments
 (0)