From 145ba6f76bbaaf8f8df33fa5118b79bdfa76e42f Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 1 Oct 2024 22:33:27 +0300 Subject: [PATCH] Fixed dark mode of stepper and toggle switch --- packages/themes/src/presets/material/stepper/index.js | 8 +++++++- .../themes/src/presets/material/toggleswitch/index.js | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/themes/src/presets/material/stepper/index.js b/packages/themes/src/presets/material/stepper/index.js index 59272a266..42794946e 100644 --- a/packages/themes/src/presets/material/stepper/index.js +++ b/packages/themes/src/presets/material/stepper/index.js @@ -55,7 +55,13 @@ export default { color: '{surface.0}' } }, - dark: {} + dark: { + stepNumber: { + background: '{surface.200}', + borderColor: '{surface.200}', + color: '{surface.900}' + } + } }, style: ({ dt }) => ` .p-step-header:focus-visible { diff --git a/packages/themes/src/presets/material/toggleswitch/index.js b/packages/themes/src/presets/material/toggleswitch/index.js index 91a0f8299..48338bbd8 100644 --- a/packages/themes/src/presets/material/toggleswitch/index.js +++ b/packages/themes/src/presets/material/toggleswitch/index.js @@ -45,15 +45,15 @@ export default { dark: { root: { background: '{surface.700}', - hoverBackground: '{surface.600}', + hoverBackground: '{surface.700}', checkedBackground: '{primary.color}', - checkedHoverBackground: '{primary.hover.color}' + checkedHoverBackground: '{primary.color}' }, handle: { background: '{surface.400}', hoverBackground: '{surface.300}', - checkedBackground: '{surface.900}', - checkedHoverBackground: '{surface.900}' + checkedBackground: '{primary.200}', + checkedHoverBackground: '{primary.200}' } } },