Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix font color type
Krzysztof Bialoglowicze91261f4ed9a
diff --git a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsxindex c08d6fb85f..dc7590c42a 100644--- a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx+++ b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx@@ -12,11 +12,12 @@ const dark: IThemeColors = {default: "#1D1E1F",paper: "#2E2F31"},- buttonText: "#202124",error: "#C22D74",font: {+ buttonText: "#202124",default: "#FCFCFC",- gray: "#9E9D9D"+ gray: "#9E9D9D",+ textColor: "#FFFFFF"},gray: {default: "#202124",@@ -29,8 +30,7 @@ const dark: IThemeColors = {},paperBorder: "#252728",primary: "#13BEBB",- secondary: "#21125E",- textColor: "#FFFFFF"+ secondary: "#21125E"};const light: IThemeColors = {autofill: "#f4f6c5",@@ -38,11 +38,12 @@ const light: IThemeColors = {default: "#F1F6F6",paper: "#FFFFFF"},- buttonText: "#FFFFFF",error: "#C22D74",font: {+ buttonText: "#FFFFFF",default: "#3D3D3D",- gray: "#616161"+ gray: "#616161",+ textColor: "#06847B"},gray: {default: "#C8C8C8",@@ -55,8 +56,7 @@ const light: IThemeColors = {},paperBorder: "#EAEAEA",primary: "#06847B",- secondary: "#21125E",- textColor: "#06847B"+ secondary: "#21125E"};interface IThemeContext {diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.tsindex 986d89ba07..bcf16d593d 100644--- a/saleor/static/dashboard-next/theme.ts+++ b/saleor/static/dashboard-next/theme.ts@@ -12,18 +12,12 @@ const createShadow = (pv, pb, ps, uv, ub, us, av, ab, as) =>export const ICONBUTTON_SIZE = 48;export type IThemeColors = Record<- | "primary"- | "secondary"- | "error"- | "paperBorder"- | "autofill"- | "buttonText"- | "textColor",+ "primary" | "secondary" | "error" | "paperBorder" | "autofill",string> & {background: Record<"default" | "paper", string>;} & {- font: Record<"default" | "gray", string>;+ font: Record<"default" | "gray" | "buttonText" | "textColor", string>;} & {gray: Record<"default" | "disabled", string>;} & {@@ -43,16 +37,16 @@ export default (colors: IThemeColors): Theme =>},flat: {"& span": {- color: colors.textColor+ color: colors.font.textColor}},flatPrimary: {"& span": {- color: colors.textColor+ color: colors.font.textColor}},label: {- color: colors.buttonText,+ color: colors.font.buttonText,fontWeight: 600},root: {