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
When scrolling down on a page, the desktop navigation is scrolled outside the viewport. Then there is just empty space on the left, which is unfortunate. One can fix that by making it sticky. For example, adding the following to this div:
However, this fails when the navigation is higher than the viewport as then one is unable to ever scroll down to the last elements of the navigation. Of course we need to fix that. Ideally via CSS only. I think ideally the nav should continue to scroll with the page until the bottom part of the nav is visible. Then it should "stick" and stop scrolling. If one could access the height of self, one could do some calc(100vh - self-height ...) tricks, essentially setting a negative top. Not sure if it's possible.
There are JS libraries for that but yeah, one would have to see how to best solve this.
Also, assuming we can implement it as described: is this fine for accessibility? As the space is completely unused anyway, I don't think we have the typical "fixed element occluding main content" problem. But we should check of course.
The text was updated successfully, but these errors were encountered:
When scrolling down on a page, the desktop navigation is scrolled outside the viewport. Then there is just empty space on the left, which is unfortunate. One can fix that by making it sticky. For example, adding the following to this div:
Already results in this effect:
2023-05-08.14-28.Display.OC.Studio.webm
However, this fails when the navigation is higher than the viewport as then one is unable to ever scroll down to the last elements of the navigation. Of course we need to fix that. Ideally via CSS only. I think ideally the nav should continue to scroll with the page until the bottom part of the nav is visible. Then it should "stick" and stop scrolling. If one could access the height of self, one could do some
calc(100vh - self-height ...)
tricks, essentially setting a negativetop
. Not sure if it's possible.There are JS libraries for that but yeah, one would have to see how to best solve this.
Also, assuming we can implement it as described: is this fine for accessibility? As the space is completely unused anyway, I don't think we have the typical "fixed element occluding main content" problem. But we should check of course.
The text was updated successfully, but these errors were encountered: