Skip to content

Commit 1e9d872

Browse files
authored
fix(navmenu): enable scrolling at 400% zoom for accessibility (#2184)
Signed-off-by: omerbakr <y.omerbakir@gmail.com>
1 parent 0df4dd3 commit 1e9d872

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

css/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
:root {
2+
--header-height: 57px;
3+
}
4+
15
* {
26
box-sizing: border-box;
37
-webkit-tap-highlight-color: transparent;
@@ -34,6 +38,7 @@ body {
3438

3539
header {
3640
grid-area: header;
41+
height: var(--header-height);
3742
}
3843

3944
.content {
@@ -1699,6 +1704,9 @@ blockquote {
16991704

17001705
#navmenu.opens {
17011706
display: block;
1707+
max-height: calc(100dvh - var(--header-height));
1708+
overflow-y: auto;
1709+
overscroll-behavior: contain;
17021710
}
17031711

17041712
#navbar a {

0 commit comments

Comments
 (0)