Skip to content

Commit 281570b

Browse files
committed
chore(swatch+swatchgroup): add changelog usage notes
1 parent bcb498c commit 281570b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.changeset/proud-schools-reply.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ This migrates the `swatch` and `swatchgroup` components to the latest Spectrum 2
99

1010
An `Add Swatch` variant has been added with the required color tokens and the specified add UI icon.
1111

12-
The `Add Swatch` and `Mixed Value` variants may not be combined with background colors or images.
12+
The `Add Swatch` and `Mixed Value` variants may not be combined with background colors or images. To implement the `Add Swatch` you need to apply the `is-addSwatch` class to the `spectrum-Swatch` element. `Add swatch` keyboard focus may be applied by adding the `is-keyboardFocused` class to this combination of classes.
13+
14+
The `spectrum-Swatch-icon` is used to set the expected color to icons contained within the swatch.
1315

1416
The border should not be set when the swatch is selected as the border conflicts with the display of the selected state.
1517

0 commit comments

Comments
 (0)