Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Improve switch style even better
dominik-zeglen32cdf9ae8300
diff --git a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsxindex 974063999c..22797963c6 100644--- a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx+++ b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx@@ -10,6 +10,12 @@ const dark: IThemeColors = {default: "#1D1E1F",paper: "#2E2F31"},+ components: {+ switch: {+ checked: "rgba(62, 231, 205, 0.2)",+ default: "#2E2F31"+ }+ },error: "#C22D74",font: {default: "#FCFCFC",@@ -28,6 +34,12 @@ const light: IThemeColors = {default: "#F1F6F6",paper: "#FFFFFF"},+ components: {+ switch: {+ checked: "#FFFFFF",+ default: "#FFFFFF"+ }+ },error: "#C22D74",font: {default: "#3D3D3D",diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.tsindex 3d8d0675e4..215287944b 100644--- a/saleor/static/dashboard-next/theme.ts+++ b/saleor/static/dashboard-next/theme.ts@@ -19,6 +19,10 @@ export type IThemeColors = Record<font: Record<"default" | "gray", string>;} & {gray: Record<"default" | "disabled", string>;+} & {+ components: {+ switch: Record<"default" | "checked", string>;+ };};export default (colors: IThemeColors): Theme =>@@ -50,7 +54,7 @@ export default (colors: IThemeColors): Theme =>MuiInput: {input: {"&:-webkit-autofill": {- boxShadow: "inset 0 0 0px 9999px #EFF8F2"+ boxShadow: `inset 0 0 0px 9999px ${fade(colors.primary, 0.2)}`},"&::placeholder": {opacity: "initial !important" as "initial"