Skip to content

Commit

Permalink
Try: Modal open scroll lock.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasmussen committed Mar 27, 2021
1 parent 3b9126e commit 2d473e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/block-library/src/navigation/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
display: flex;
flex-direction: column;

// Allow modal to scroll.
overflow: auto;

// Give it a z-index just higher than the adminbar.
z-index: 100000;

Expand Down Expand Up @@ -213,3 +216,7 @@
align-items: flex-start;
}
}

html.has-modal-open {
overflow: hidden;
}

0 comments on commit 2d473e1

Please sign in to comment.