Skip to content

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

Fix names

Krzysztof Bialoglowicz52321896d644
diff --git a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx
index dc7590c42a..2e04cceb97 100644
--- a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx
+++ b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx
@@ -14,10 +14,10 @@ const dark: IThemeColors = {
},
error: "#C22D74",
font: {
- buttonText: "#202124",
+ button: "#202124",
default: "#FCFCFC",
gray: "#9E9D9D",
- textColor: "#FFFFFF"
+ textButton: "#FFFFFF"
},
gray: {
default: "#202124",
@@ -40,10 +40,10 @@ const light: IThemeColors = {
},
error: "#C22D74",
font: {
- buttonText: "#FFFFFF",
+ button: "#FFFFFF",
default: "#3D3D3D",
gray: "#616161",
- textColor: "#06847B"
+ textButton: "#06847B"
},
gray: {
default: "#C8C8C8",
diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.ts
index bcf16d593d..dff2e1daad 100644
--- a/saleor/static/dashboard-next/theme.ts
+++ b/saleor/static/dashboard-next/theme.ts
@@ -17,7 +17,7 @@ export type IThemeColors = Record<
> & {
background: Record<"default" | "paper", string>;
} & {
- font: Record<"default" | "gray" | "buttonText" | "textColor", string>;
+ font: Record<"default" | "gray" | "button" | "textButton", string>;
} & {
gray: Record<"default" | "disabled", string>;
} & {
@@ -37,16 +37,16 @@ export default (colors: IThemeColors): Theme =>
},
flat: {
"& span": {
- color: colors.font.textColor
+ color: colors.font.textButton
}
},
flatPrimary: {
"& span": {
- color: colors.font.textColor
+ color: colors.font.textButton
}
},
label: {
- color: colors.font.buttonText,
+ color: colors.font.button,
fontWeight: 600
},
root: {