You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On small screens (when the top nav bar is presented with a hamburger menu icon) and the user has scrolled enough for the navbar to be positioned fixed to top, clicking the top right "menu"+icon (li.toggle-topbar.menu-icon) element makes the the page 'jump to top'.
This looses the orientation on the page and can be confusing to the user. A more straightforward behaviour would be simply to expand the nav bar element while keeping the scroll position the same.
I've looked into user/themes/gateway/js/foundation.js and found the scrolltop option in the settings object of Foundation.libs.topbar. I've tried setting scrolltop to false, which results in expected behaviour when the top nav bar is in fixed positioning (scrolled), but causes the nav bar element to be positioned to the top of the page when clicked while it is not initially in fixed positioning (not scrolled).
To summarise the states that are buggy:
scrolltop \ position
fixed (scrolled)
relative (not scrolled)
true
❌ page jumps to top
✅
false
✅
❌ nav bar element at page top
The text was updated successfully, but these errors were encountered:
On small screens (when the top nav bar is presented with a hamburger menu icon) and the user has scrolled enough for the navbar to be positioned
fixed
to top, clicking the top right "menu"+icon (li.toggle-topbar.menu-icon
) element makes the the page 'jump to top'.This looses the orientation on the page and can be confusing to the user. A more straightforward behaviour would be simply to expand the nav bar element while keeping the scroll position the same.
I've looked into
user/themes/gateway/js/foundation.js
and found thescrolltop
option in the settings object ofFoundation.libs.topbar
. I've tried settingscrolltop
tofalse
, which results in expected behaviour when the top nav bar is infixed
positioning (scrolled), but causes the nav bar element to be positioned to the top of the page when clicked while it is not initially infixed positioning
(not scrolled).To summarise the states that are buggy:
The text was updated successfully, but these errors were encountered: