Skip to content

Commit a3c7532

Browse files
committed
fix(swatch+swatchgroup): restore spacious density swatchgroup test; add tokens to changeset
1 parent c66d8de commit a3c7532

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.changeset/proud-schools-reply.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
`@spectrum-css/swatchgroup`: major
33
`@spectrum-css/swatch`: major
4+
`@spectrum-css/tokens`: minor
45
---
56

67
#### S2 migration for Swatch group

components/swatchgroup/index.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,10 @@
2525
gap: var(--mod-swatchgroup-spacing, var(--spectrum-swatchgroup-spacing));
2626
}
2727

28-
/* Small */
2928
.spectrum-SwatchGroup--compact {
3029
--spectrum-swatchgroup-spacing: var(--spectrum-spacing-50);
3130
}
3231

33-
/* Large */
3432
.spectrum-SwatchGroup--spacious:has(.spectrum-Swatch--sizeXS, .spectrum-Swatch--sizeS) {
3533
--spectrum-swatchgroup-spacing: var(--spectrum-swatch-group-spacing-spacious);
3634
}

components/swatchgroup/stories/swatchgroup.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ export const SwatchgroupGroup = Variants({
1111
testHeading: "Compact density",
1212
density: "compact",
1313
},
14+
{
15+
testHeading: "Spacious density",
16+
density: "spacious",
17+
},
1418
{
1519
testHeading: "Full rounding (regular density)",
1620
rounding: "full",

0 commit comments

Comments
 (0)