File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @primer/css ' : patch
3
+ ---
4
+
5
+ Fix styles for ::backdrop
Original file line number Diff line number Diff line change 31
31
}
32
32
33
33
::backdrop ,
34
- [data-color-mode = " light" ][data-light-theme = " #{$theme-name } " ],
34
+ [data-color-mode = " light" ][data-light-theme = " #{$theme-name } " ]::backdrop ,
35
35
[data-color-mode = " dark" ][data-dark-theme = " #{$theme-name } " ]::backdrop {
36
36
@content ;
37
37
47
47
@content ;
48
48
}
49
49
}
50
+
51
+ ::backdrop ,
52
+ [data-color-mode = " light" ][data-light-theme = " #{$theme-name } " ]::backdrop ,
53
+ [data-color-mode = " dark" ][data-dark-theme = " #{$theme-name } " ]::backdrop {
54
+ @content ;
55
+
56
+ /* ! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
57
+ }
50
58
}
51
59
52
60
@media (prefers-color-scheme : light ) {
56
64
@content ;
57
65
}
58
66
}
67
+
68
+ [data-color-mode = " auto" ][data-light-theme = " #{$theme-name } " ]::backdrop {
69
+ @content ;
70
+
71
+ /* ! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
72
+ }
59
73
}
60
74
61
75
@media (prefers-color-scheme : dark ) {
65
79
@content ;
66
80
}
67
81
}
82
+
83
+ [data-color-mode = " auto" ][data-light-theme = " #{$theme-name } " ]::backdrop {
84
+ @content ;
85
+
86
+ /* ! */ // Must remain separate from the above selector to not break browsers which don't support ::backdrop, e.g. Safari 14.
87
+ }
68
88
}
69
89
}
70
90
You can’t perform that action at this time.
0 commit comments