Skip to content

Commit 172779e

Browse files
committed
fix(textfield): update border color on keyfocus in s2
1 parent 4fd1888 commit 172779e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.changeset/strong-falcons-switch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"@spectrum-css/textfield": patch
33
---
44

5-
updated border color for keyfocus and focus state and updated background and border color for default disabled state in s2
5+
updated border color on keyboard focus state for textfield in spectrum-two theme

components/textfield/dist/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@
292292
"--spectrum-font-size-200",
293293
"--spectrum-font-size-300",
294294
"--spectrum-font-size-75",
295-
"--spectrum-gray-200",
296295
"--spectrum-gray-25",
297296
"--spectrum-gray-300",
298297
"--spectrum-gray-500",
299298
"--spectrum-gray-600",
299+
"--spectrum-gray-800",
300300
"--spectrum-gray-900",
301301
"--spectrum-help-text-to-component",
302302
"--spectrum-negative-border-color-default",

components/textfield/themes/spectrum-two.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
@container style(--system: spectrum) {
1515
.spectrum-Textfield {
1616
--spectrum-textfield-background-color: var(--spectrum-gray-25);
17-
--spectrum-textfield-background-color-disabled: var(--spectrum-gray-200);
17+
--spectrum-textfield-background-color-disabled: var(--spectrum-gray-25);
1818

1919
--spectrum-textfield-border-color: var(--spectrum-gray-500);
2020
--spectrum-textfield-border-color-hover: var(--spectrum-gray-600);
21-
--spectrum-textfield-border-color-focus: var(--spectrum-gray-500);
21+
--spectrum-textfield-border-color-focus: var(--spectrum-gray-800);
2222
--spectrum-textfield-border-color-focus-hover: var(--spectrum-gray-900);
23-
--spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-900);
24-
--spectrum-textfield-border-color-disabled: transparent;
23+
--spectrum-textfield-border-color-keyboard-focus: var(--spectrum-gray-800);
24+
--spectrum-textfield-border-color-disabled: var(--spectrum-gray-300);
2525

2626
--spectrum-textfield-border-width: var(--spectrum-border-width-100);
2727

0 commit comments

Comments
 (0)