Closed finnmglas closed 3 years ago
Here's another problem I found:
Opening the mobile menu causes a content shift. The shift is equivalent to the header / top-navigation height.
Screenshots:
I managed to fix it in one of my customized versions of the hugo-hero-theme.
I did it by removing this from _header.scss:
_header.scss
.lock-scroll { .header { &.header-absolute { position: static; } } }
and changing z-index: 10; to z-index: 100;, so that the menu bar will be visible at all times (above the mobile menu).
z-index: 10;
z-index: 100;
I am not sure if that fix would be fine for your purposes, however, the content-shift is a bug.
Here's another problem I found:
Opening the mobile menu causes a content shift. The shift is equivalent to the header / top-navigation height.
Screenshots:
I managed to fix it in one of my customized versions of the hugo-hero-theme.
Screenshots:
I did it by removing this from
_header.scss
:and changing
z-index: 10;
toz-index: 100;
, so that the menu bar will be visible at all times (above the mobile menu).I am not sure if that fix would be fine for your purposes, however, the content-shift is a bug.