Skip to content

Commit

Permalink
fix(menu): 🐛 prevent page from scrolling when dropdown menu is open i…
Browse files Browse the repository at this point in the history
…n small viewport
  • Loading branch information
alistair3149 committed Jun 25, 2024
1 parent 7133648 commit dd53576
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions resources/skins.citizen.styles/components/Menu.less
Original file line number Diff line number Diff line change
Expand Up @@ -230,3 +230,10 @@
filter: var( --filter-invert );
}
}

@media ( max-width: @max-width-breakpoint-tablet ) {
/* HACK: Disable page from scolling when a dropdown menu is opened */
body:has( .citizen-menu__dropdown[ open ] ) {
overflow: hidden;
}
}

0 comments on commit dd53576

Please sign in to comment.