Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix switch styles
dominik-zeglen178b36b0f1b3
diff --git a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsxindex c6dc8e3b35..974063999c 100644--- a/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx+++ b/saleor/static/dashboard-next/components/Theme/ThemeProvider.tsx@@ -15,6 +15,10 @@ const dark: IThemeColors = {default: "#FCFCFC",gray: "#9E9D9D"},+ gray: {+ default: "#202124",+ disabled: "rgba(32, 33, 36, 0.6)"+ },paperBorder: "#252728",primary: "#13BEBB",secondary: "#13BEBB"@@ -29,6 +33,10 @@ const light: IThemeColors = {default: "#3D3D3D",gray: "#616161"},+ gray: {+ default: "#C8C8C8",+ disabled: "rgba(216, 216, 216, 0.3)"+ },paperBorder: "#EAEAEA",primary: "#13BEBB",secondary: "#13BEBB"diff --git a/saleor/static/dashboard-next/theme.ts b/saleor/static/dashboard-next/theme.tsindex 372e214bc3..3d8d0675e4 100644--- a/saleor/static/dashboard-next/theme.ts+++ b/saleor/static/dashboard-next/theme.ts@@ -17,6 +17,8 @@ export type IThemeColors = Record<background: Record<"default" | "paper", string>;} & {font: Record<"default" | "gray", string>;+} & {+ gray: Record<"default" | "disabled", string>;};export default (colors: IThemeColors): Theme =>@@ -84,7 +86,7 @@ export default (colors: IThemeColors): Theme =>"$colorPrimary$checked + &": {backgroundColor: colors.primary},- backgroundColor: colors.error,+ backgroundColor: colors.gray.default,borderRadius: 12,height: 24,marginTop: -12,@@ -97,16 +99,17 @@ export default (colors: IThemeColors): Theme =>disabled: {"&$switchBase": {"& + $bar": {- backgroundColor: "#eeeeee"+ backgroundColor: colors.gray.disabled}}},icon: {- backgroundColor: "#ffffff",+ backgroundColor: colors.background.paper,boxShadow: "none",marginLeft: 4},iconChecked: {+ backgroundColor: colors.background.paper,boxShadow: "none"}},