fix(modal): prevent scrolling and interactions below a modal on mobile

This commit is contained in:
rbf 2022-11-07 16:17:06 +01:00 committed by Lucas Larroche
parent b082797555
commit a696328621
2 changed files with 2 additions and 0 deletions

View file

@ -2254,6 +2254,7 @@ dialog:not([open]), dialog[open=false] {
padding-right: var(--pico-scrollbar-width, 0px);
overflow: hidden;
pointer-events: none;
touch-action: none;
}
.modal-is-open dialog {
pointer-events: auto;