Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Update autofill colors

dominik-zeglen19fa7fce983f
diff --git a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx
index 1e7a6be9ad..8982a98b93 100644
--- a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx
+++ b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx
@@ -6,6 +6,7 @@ import createTheme, { IThemeColors } from "../../theme";
// TODO: fix secondary buttons lol
const dark: IThemeColors = {
+ autofill: "#5D5881",
background: {
default: "#1D1E1F",
paper: "#2E2F31"
@@ -24,6 +25,7 @@ const dark: IThemeColors = {
secondary: "#13BEBB"
};
const light: IThemeColors = {
+ autofill: "#f4f6c5",
background: {
default: "#F1F6F6",
paper: "#FFFFFF"
diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.ts
index 3967e4e53e..386293258b 100644
--- a/saleor/static/dashboard-next/theme.ts
+++ b/saleor/static/dashboard-next/theme.ts
@@ -11,7 +11,7 @@ const createShadow = (pv, pb, ps, uv, ub, us, av, ab, as) =>
export const ICONBUTTON_SIZE = 48;
export type IThemeColors = Record<
- "primary" | "secondary" | "error" | "paperBorder",
+ "primary" | "secondary" | "error" | "paperBorder" | "autofill",
string
> & {
background: Record<"default" | "paper", string>;
@@ -58,7 +58,7 @@ export default (colors: IThemeColors): Theme =>
MuiInput: {
input: {
"&:-webkit-autofill": {
- boxShadow: `inset 0 0 0px 9999px ${fade(colors.primary, 0.2)}`
+ boxShadow: `inset 0 0 0px 9999px ${colors.autofill}`
},
"&::placeholder": {
opacity: "initial !important" as "initial"