Skip to content

Commit 616c893

Browse files
Add ::selection to root color vars (#2437)
* add selection selector * Create quiet-wasps-care.md --------- Co-authored-by: Cameron Dutro <[email protected]>
1 parent 12488ce commit 616c893

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/quiet-wasps-care.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Add `::selection` to root color vars

src/support/mixins/color-modes.scss

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
@mixin color-mode-theme($theme-name, $include-root: false) {
22
@if $include-root {
33
:root,
4+
::selection,
45
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
56
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] {
67
@content;
@@ -32,6 +33,7 @@
3233
@mixin color-mode($mode) {
3334
@if $mode == light {
3435
:root,
36+
::selection,
3537
[data-color-mode="light"][data-light-theme*="#{$mode}"],
3638
[data-color-mode="dark"][data-dark-theme*="#{$mode}"] {
3739
@content;

0 commit comments

Comments
 (0)