Skip to content

Commit 7bd5e4b

Browse files
fix(swatch): adjust s2 corner rounding (#3543)
1 parent 1a3245c commit 7bd5e4b

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

.changeset/light-impalas-march.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@spectrum-css/swatch": patch
3+
---
4+
5+
Adjust S2 corner rounding to match S2 spec.

components/swatch/dist/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"--spectrum-animation-duration-100",
104104
"--spectrum-border-width-100",
105105
"--spectrum-border-width-200",
106-
"--spectrum-corner-radius-100",
106+
"--spectrum-corner-radius-75",
107107
"--spectrum-focus-indicator-color",
108108
"--spectrum-focus-indicator-gap",
109109
"--spectrum-focus-indicator-thickness",
@@ -120,6 +120,7 @@
120120
],
121121
"system-theme": [
122122
"--system-swatch-border-color",
123+
"--system-swatch-border-radius",
123124
"--system-swatch-disabled-icon-color",
124125
"--system-swatch-inner-border-color-selected"
125126
],

components/swatch/index.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
.spectrum-Swatch {
6363
--spectrum-swatch-focus-indicator-border-radius: 8px;
6464
--spectrum-swatch-icon-border-color: rgb(0 0 0 / 51%);
65-
--spectrum-swatch-border-radius: var(--spectrum-corner-radius-100);
6665
--spectrum-swatch-border-thickness: var(--spectrum-border-width-100);
6766
--spectrum-swatch-border-thickness-selected: var(--spectrum-border-width-200);
6867
--spectrum-swatch-focus-indicator-thickness: var(--spectrum-focus-indicator-thickness);

components/swatch/themes/spectrum-two.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
--spectrum-swatch-border-color: rgba(var(--spectrum-gray-1000-rgb), var(--spectrum-swatch-border-color-opacity));
1818
--spectrum-swatch-inner-border-color-selected: var(--spectrum-gray-25);
1919
--spectrum-swatch-disabled-icon-color: var(--spectrum-gray-25);
20+
--spectrum-swatch-border-radius: var(--spectrum-corner-radius-75);
2021
}
2122
}

components/swatch/themes/spectrum.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@
2020
--spectrum-swatch-border-color: rgba(var(--spectrum-gray-900-rgb), var(--spectrum-swatch-border-color-opacity));
2121
--spectrum-swatch-inner-border-color-selected: var(--spectrum-gray-50);
2222
--spectrum-swatch-disabled-icon-color: var(--spectrum-gray-50);
23+
--spectrum-swatch-border-radius: var(--spectrum-corner-radius-100);
2324
}
2425
}

0 commit comments

Comments
 (0)