Skip to content

Commit

Permalink
fix(themes): remove color-scheme property from :root element
Browse files Browse the repository at this point in the history
  • Loading branch information
CoroDaniel authored and cipak committed Mar 23, 2022
1 parent 7445e68 commit e831a6d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/styles/_defaults.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.wxc {
@include body-font;
color-scheme: var(--wxc-browser-color-scheme);
}

.wxc, .wxc * {
Expand Down
2 changes: 1 addition & 1 deletion src/themes/dark.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.#{$WEBEX_COMPONENTS_CLASS_PREFIX}-theme-dark, .md-theme-darkWebex, :root {
color-scheme: dark;
--wxc-browser-color-scheme: dark;

--wxc-loading-logo--url: url(../themes/dark/loading.gif);
--wxc-loading-logo--size: 11.6875rem;
Expand Down
2 changes: 1 addition & 1 deletion src/themes/light.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.#{$WEBEX_COMPONENTS_CLASS_PREFIX}-theme-light, .md-theme-lightWebex {
color-scheme: light;
--wxc-browser-color-scheme: light;

--wxc-loading-logo--url: url(../themes/light/loading.gif);
--wxc-loading-logo--size: 11.6875rem;
Expand Down

0 comments on commit e831a6d

Please sign in to comment.