We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
::selection
1 parent 12488ce commit 616c893Copy full SHA for 616c893
.changeset/quiet-wasps-care.md
@@ -0,0 +1,5 @@
1
+---
2
+"@primer/css": patch
3
4
+
5
+Add `::selection` to root color vars
src/support/mixins/color-modes.scss
@@ -1,6 +1,7 @@
@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;
@@ -32,6 +33,7 @@
32
33
@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