Skip to content

Commit

Permalink
fix_overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergii-Drozdiuk committed Jun 18, 2023
1 parent 70a32dd commit 8f1ac2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1084,6 +1084,7 @@ body {
position: fixed;
top: 0;
left: 0;
overflow-y: auto;
z-index: 100;
width: 100%;
height: 100%;
Expand Down Expand Up @@ -1116,7 +1117,6 @@ body {
box-shadow: var(--modal-shadow);
border-radius: 4px;
padding: 72px 16px 24px 16px;
overflow-y: auto;
}
@media screen and (min-width: 428px) and (max-width: 767px) {
.modal {
Expand Down
2 changes: 1 addition & 1 deletion js/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const modal = document.querySelector("[data-modal]");
// Close the mobile menu on wider screens if the device orientation changes
window.matchMedia('(max-width: 1158px)').addEventListener('change', e => {
if (!e.matches) return;
modal.classList.add('is-hidden');
modal.classList.add("is-hidden");
openModalBtn.setAttribute('aria-expanded', false);
bodyScrollLock.enableBodyScroll(document.body);
});
Expand Down

0 comments on commit 8f1ac2b

Please sign in to comment.