Merge pull request #2401 from nqst/modal-scroll-block

Prevent page scrolling when modal dialog is open
This commit is contained in:
Andy Smith
2026-01-21 14:02:20 -06:00
committed by GitHub
+5
View File
@@ -1,4 +1,9 @@
@layer components {
/* Prevent page scrolling when modal dialog is open */
html:has(dialog:modal) {
overflow: hidden;
}
:is(.dialog) {
border: 0;
opacity: 0;