Skip to content

Commit 865c487

Browse files
authored
Adjust colors of buttons and inputs to match older gray values (#472)
1 parent d801179 commit 865c487

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/view/global.styl

+16-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,21 @@ body,
4444
min-height: var(--spectrum-global-dimension-size-4600) !important
4545
}
4646

47-
.react-spectrum-provider.bg-gray-50 {
47+
.react-spectrum-provider.legacy-gray {
4848
background-color: var(--spectrum-gray-50) !important;
49+
50+
[class*="spectrum-Textfield-input"],
51+
[class*="spectrum-BaseButton"]:not([class*="--quiet"]),
52+
{
53+
background-color: var(--spectrum-gray-25) !important;
54+
&[disabled], &[aria-disabled="true"] {
55+
background-color: var(--spectrum-gray-100) !important;
56+
}
57+
}
58+
59+
[class*="spectrum-Checkbox"] [class*="spectrum-Checkbox-box"]::before,
60+
[class*="spectrum-Radio-button"]::before,
61+
{
62+
background-color: var(--spectrum-gray-25) !important;
63+
}
4964
}

src/view/render.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default (View, { noPadding = false } = {}) => {
3232
<Provider
3333
theme={lightTheme}
3434
colorScheme="light"
35-
UNSAFE_className={`react-spectrum-provider spectrum spectrum--medium spectrum--light${paddingClass} bg-gray-50`}
35+
UNSAFE_className={`react-spectrum-provider spectrum spectrum--medium spectrum--light${paddingClass} legacy-gray`}
3636
>
3737
<ErrorBoundary>
3838
<View />

0 commit comments

Comments
 (0)