-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#careers url fragment overwritten by #getinvolved #149
Comments
I can't reproduce this, for me it only changes to EDIT: I can reproduce with a larger Window, where it can't scroll down far enough to show the Careers section at the top |
I'll try to explain the problem here before presenting possible solutions: Very high screens lead to multiple sections being in the viewport simultaneously. That in return results in the last section never being selected on big viewports, because you can not scroll down past the footer (as can be seen in the following screenshot) Knowing this, there are multiple possible solutions to this problem:
We can combine both strategies by adding 33vh space around the last section AND the footer, which will lead to the last section being scrollable |
Adding 25vh around both footer and last section, we can achieve reasonable results: This of course will not work on ALL screens. When the viewing screens are too high and the viewport coverage of footer and last section combined fall below 25vh, the problem returns. That said, I believe in a pragmatic selection of which viewport sizes we want to support. |
Is there a website that found a solution that works no matter the viewport size? |
AFAIK there is not - Changing the url depending on scroll position is tricky... But if you find one, please let me know! I will also put some more research and thought into this. |
the url fragment #careers gets incorrectly overwritten/replaced by #getinvolved after clicking
Careers
in the navbar and never gets set to #careers when you scroll to the bottom of the pageto repro:
Careers
in the navbar in the upper rightthis bug depends on where in the page you are when you click
Careers
in the navbar. if youre at the top of the page and clickCareers
, the final url is https://strn.network/#getinvolved. but if youre already at the careers section and clickCareers
again, the page doesnt scroll (bc youre already at the careers section) but the url changes to the correct https://strn.network/#careerscorrect behavior: the url fragment should always be #careers after clicking
Careers
in the navbar and when scrolled down the bottom of the page. currently, when you just scroll down to the very bottom of the page, the fragment remains #getinvolved when it should switch to #careers, tooThe text was updated successfully, but these errors were encountered: