Skip to content

Commit 19018bc

Browse files
authored
provide css vars to ::backdrop (#2519)
1 parent 229e771 commit 19018bc

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/support/mixins/color-modes.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,14 @@
2929

3030
/*! */ // This is a fix for a cssstats bug see https://github.com/cssstats/cssstats/issues/331
3131
}
32+
33+
::backdrop,
34+
[data-color-mode="light"][data-light-theme="#{$theme-name}"],
35+
[data-color-mode="dark"][data-dark-theme="#{$theme-name}"]::backdrop {
36+
@content;
37+
38+
/*! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
39+
}
3240
}
3341

3442
@else {

0 commit comments

Comments
 (0)