fix(ui): track top modal overlay in JS, Safari does not re-evaluate :has() on removal

This commit is contained in:
ner committed 2026-09-13 19:32:35 +03:00
1 parent f642dad64e
commit 5b41dbca10
2 files changed
+46 -3

No files matched your search

+3 -1
View File
@@ -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;
}