From aa54043b9f02479b0dad37c84c838e446e0fffb7 Mon Sep 17 00:00:00 2001 From: Pavindu Lakshan Date: Thu, 2 Nov 2023 15:49:27 +0530 Subject: [PATCH] fix(react): add default styles for switch component --- packages/react/src/components/Switch/switch.scss | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/packages/react/src/components/Switch/switch.scss b/packages/react/src/components/Switch/switch.scss index 80099f53..aff1897d 100644 --- a/packages/react/src/components/Switch/switch.scss +++ b/packages/react/src/components/Switch/switch.scss @@ -18,4 +18,13 @@ .oxygen-switch { /* Add styles */ + .MuiSwitch-thumb { + color: lightgray; + } + + .Mui-checked { + .MuiSwitch-thumb { + color: var(--oxygen-palette-primary-main); + } + } }