Browse Source

fix(admin-ui): Fix dark mode layout

Fixes #2745
Michael Bromley 1 year ago
parent
commit
893a9132ec

+ 1 - 1
packages/admin-ui/src/lib/static/styles/theme/dark.scss

@@ -1,7 +1,7 @@
 // Vendure dark theme
 // Based on this dark theme example from Scott Mathis:
 // https://github.com/mathisscott/clarity-theming-starter/blob/20f4680b43a9a7fd3d43a6ba36f717fdafc6e570/src/_dark-theme.scss
-[data-theme="dark"][cds-theme] {
+:root [data-theme="dark"] {
     --color-grey-100: hsl(211, 10%, 90%);
     --color-grey-200: hsl(211, 10%, 67%);
     --color-grey-300: hsl(211, 10%, 47%);

+ 1 - 1
packages/admin-ui/src/lib/static/styles/theme/default.scss

@@ -2,7 +2,7 @@
 
 // Default Vendure light theme. The Clarity component custom properties
 // are left as their defaults.
-:root [cds-theme="light"] {
+:root [cds-theme] {
     // Colors
     --color-grey-100: #fafafa;
     --color-grey-200: #f2f3f5;