From 147471d8b427402ad1fd4a9a4de7bb96a3328f06 Mon Sep 17 00:00:00 2001 From: langermank <18661030+langermank@users.noreply.github.com> Date: Tue, 2 May 2023 10:48:44 -0700 Subject: [PATCH 1/2] add selection selector --- src/support/mixins/color-modes.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/support/mixins/color-modes.scss b/src/support/mixins/color-modes.scss index 6383c27931..40032bbebb 100644 --- a/src/support/mixins/color-modes.scss +++ b/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}"], [data-color-mode="dark"][data-dark-theme="#{$theme-name}"] { @content; @@ -32,6 +33,7 @@ @mixin color-mode($mode) { @if $mode == light { :root, + ::selection, [data-color-mode="light"][data-light-theme*="#{$mode}"], [data-color-mode="dark"][data-dark-theme*="#{$mode}"] { @content; From 34d012e89baadd39877f3bd1dc636f962a6a10a4 Mon Sep 17 00:00:00 2001 From: Katie Langerman <18661030+langermank@users.noreply.github.com> Date: Tue, 2 May 2023 10:51:59 -0700 Subject: [PATCH 2/2] Create quiet-wasps-care.md --- .changeset/quiet-wasps-care.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/quiet-wasps-care.md diff --git a/.changeset/quiet-wasps-care.md b/.changeset/quiet-wasps-care.md new file mode 100644 index 0000000000..b5870b6ad8 --- /dev/null +++ b/.changeset/quiet-wasps-care.md @@ -0,0 +1,5 @@ +--- +"@primer/css": patch +--- + +Add `::selection` to root color vars