Skip to content

Commit

Permalink
Add spaces to ::backdrop (#2563)
Browse files Browse the repository at this point in the history
* add spaces

* changeset
  • Loading branch information
langermank committed Dec 7, 2023
1 parent 91075c1 commit 4195245
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-ducks-work.md
@@ -0,0 +1,5 @@
---
'@primer/css': patch
---

fix backdrop selector
18 changes: 9 additions & 9 deletions src/support/mixins/color-modes.scss
Expand Up @@ -31,8 +31,8 @@
}

::backdrop,
[data-color-mode="light"][data-light-theme="#{$theme-name}"]::backdrop,
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"]::backdrop {
[data-color-mode="light"][data-light-theme="#{$theme-name}"] ::backdrop,
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] ::backdrop {
@content;

/*! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
Expand All @@ -47,10 +47,10 @@
@content;
}
}

::backdrop,
[data-color-mode="light"][data-light-theme="#{$theme-name}"]::backdrop,
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"]::backdrop {
[data-color-mode="light"][data-light-theme="#{$theme-name}"] ::backdrop,
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"] ::backdrop {
@content;

/*! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
Expand All @@ -64,8 +64,8 @@
@content;
}
}
[data-color-mode="auto"][data-light-theme="#{$theme-name}"]::backdrop {

[data-color-mode="auto"][data-light-theme="#{$theme-name}"] ::backdrop {
@content;

/*! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
Expand All @@ -79,8 +79,8 @@
@content;
}
}
[data-color-mode="auto"][data-light-theme="#{$theme-name}"]::backdrop {

[data-color-mode="auto"][data-light-theme="#{$theme-name}"] ::backdrop {
@content;

/*! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
Expand Down

0 comments on commit 4195245

Please sign in to comment.