Merge pull request #2401 from nqst/modal-scroll-block
Prevent page scrolling when modal dialog is open
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user