Prevent page scrolling when modal dialog is open

This commit is contained in:
Alexander Zaytsev
2026-01-19 20:46:49 +01:00
parent 9c6d6b2088
commit fa4e77f35e
+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;