Skip to content

Commit c6d5d1d

Browse files
authored
Revert "Add ::selection to root color vars" (#2468)
* Revert "Add `::selection` to root color vars (#2437)" This reverts commit 616c893. * changeset
1 parent 00c7645 commit c6d5d1d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.changeset/hungry-pandas-roll.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
@mixin color-mode-theme($theme-name, $include-root: false) {
22
@if $include-root {
33
:root,
4-
::selection,
54
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
65
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
76
@content;
@@ -33,7 +32,6 @@
3332
@mixin color-mode($mode) {
3433
@if $mode == light {
3534
:root,
36-
::selection,
3735
[data-color-mode="light"][data-light-theme*="#{$mode}"],
3836
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
3937
@content;

0 commit comments

Comments
 (0)