We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
::selection
1 parent 00c7645 commit c6d5d1dCopy full SHA for c6d5d1d
.changeset/hungry-pandas-roll.md
@@ -0,0 +1,5 @@
1
+---
2
+'@primer/css': patch
3
4
+
5
+Fix bug with `color-mode` mixin not applying correctly due to `::selection`
src/support/mixins/color-modes.scss
@@ -1,7 +1,6 @@
@mixin color-mode-theme($theme-name, $include-root: false) {
@if $include-root {
:root,
- ::selection,
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
6
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
7
@content;
@@ -33,7 +32,6 @@
33
32
@mixin color-mode($mode) {
34
@if $mode == light {
35
36
37
[data-color-mode="light"][data-light-theme*="#{$mode}"],
38
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
39
0 commit comments