Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix button colors in darkMode
Krzysztof Bialoglowicz82c0b84d1ddd
diff --git a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsxindex 1c298fd492..c08d6fb85f 100644--- a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx+++ b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx@@ -12,6 +12,7 @@ const dark: IThemeColors = {default: "#1D1E1F",paper: "#2E2F31"},+ buttonText: "#202124",error: "#C22D74",font: {default: "#FCFCFC",@@ -28,7 +29,8 @@ const dark: IThemeColors = {},paperBorder: "#252728",primary: "#13BEBB",- secondary: "#21125E"+ secondary: "#21125E",+ textColor: "#FFFFFF"};const light: IThemeColors = {autofill: "#f4f6c5",@@ -36,6 +38,7 @@ const light: IThemeColors = {default: "#F1F6F6",paper: "#FFFFFF"},+ buttonText: "#FFFFFF",error: "#C22D74",font: {default: "#3D3D3D",@@ -52,7 +55,8 @@ const light: IThemeColors = {},paperBorder: "#EAEAEA",primary: "#06847B",- secondary: "#21125E"+ secondary: "#21125E",+ textColor: "#06847B"};interface IThemeContext {diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.tsindex 3826ae4471..afcb0fa1dd 100644--- a/saleor/static/dashboard-next/theme.ts+++ b/saleor/static/dashboard-next/theme.ts@@ -12,7 +12,13 @@ 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",+ | "primary"+ | "secondary"+ | "error"+ | "paperBorder"+ | "autofill"+ | "buttonText"+ | "textColor",string> & {background: Record<"default" | "paper", string>;@@ -35,7 +41,18 @@ export default (colors: IThemeColors): Theme =>backgroundColor: fade(colors.primary, 0.12)}},+ flatPrimary: {+ "& span": {+ color: colors.textColor+ }+ },+ flat: {+ "& span": {+ color: colors.textColor+ }+ },label: {+ color: colors.buttonText,fontWeight: 600},root: {