diff --git a/extensions/flags/less/forum.less b/extensions/flags/less/forum.less index 4ba42eacfe..13eaa52353 100644 --- a/extensions/flags/less/forum.less +++ b/extensions/flags/less/forum.less @@ -1,8 +1,8 @@ -:root { +[data-theme=light] { .light-contents-vars(@color: @body-bg-light; @control-color: @body-bg-light; @name: 'flagged-post'); } -[data-theme=dark]:root { +[data-theme=dark] { .light-contents-vars(@color: @body-bg-dark; @control-color: @body-bg-dark; @name: 'flagged-post'); } diff --git a/extensions/tags/less/forum/ToggleButton.less b/extensions/tags/less/forum/ToggleButton.less index d0198a12fd..5d48b14bcf 100644 --- a/extensions/tags/less/forum/ToggleButton.less +++ b/extensions/tags/less/forum/ToggleButton.less @@ -1,8 +1,8 @@ -:root { +[data-theme=light] { .Button--color-vars(@control-bg-light, @control-color-light, 'button-toggled'); } -[data-theme=dark]:root { +[data-theme=dark] { .Button--color-vars(@control-bg-dark, @control-color-dark, 'button-toggled'); }