fix(ui): track top modal overlay in JS, Safari does not re-evaluate :has() on removal
This commit is contained in:
1 parent
f642dad64e
commit
5b41dbca10
2 files changed
+46
-3
No files matched your search
+3
-1
@@ -107,7 +107,9 @@
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
|
||||
body [data-overlay]:has(~ [data-overlay]) {
|
||||
/* The topmost overlay is flagged by JS (see markTopOverlay in dialog.tsx); Safari
|
||||
does not re-evaluate :has() when a sibling overlay is removed. */
|
||||
body [data-overlay]:not([data-overlay-top]) {
|
||||
background: none;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user