Skip to content
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

Add back-to-top button or fixed navigation #49

Open
digitalcraftsman opened this issue Jul 17, 2017 · 6 comments
Open

Add back-to-top button or fixed navigation #49

digitalcraftsman opened this issue Jul 17, 2017 · 6 comments

Comments

@digitalcraftsman
Copy link
Member

Pages with a lot of content, like the template primer, take users long to scroll back to the top. While I can click on the first headline in the TOC it doesn't take all the way up to the navigation. To reach the navigation I still a have to scroll once in order to reach it.

To simplify things I propose the addition of a back-to-top button that appears once the user surpasses a certain threshold of pixels in the viewport.

@rdwatters
Copy link
Contributor

Not to muddy the issue, but I think fixed navigation(s) might be a better consideration.

@bep
Copy link
Member

bep commented Jul 17, 2017

What do you mean by "fixed navigation"?

@digitalcraftsman
Copy link
Member Author

digitalcraftsman commented Jul 17, 2017

Fixed in the sense that the navigation stays at the top for example while scrolling. This can simply be done by adding the position: fixed; property in CSS to a container. Hence the name.

Have a look at the navigation of this Bootstrap theme.

@bep
Copy link
Member

bep commented Jul 17, 2017

Ah, OK, yes then I agree with @rdwatters -- it would be good to have the search box available at all times.

@digitalcraftsman digitalcraftsman changed the title Add back-to-top button Add back-to-top button or fixed navigation Jul 28, 2017
@digitalcraftsman
Copy link
Member Author

A fixed navigation on the theme site would be a great addition as well since the homepage is quite long.

@rdwatters
Copy link
Contributor

I should clarify: fixed for the sidebar nav and toc, at least on desktop, especially if we are going to (re)implement smooth scrolling with hash changes. (We already have fixed nav on mobile, and I like the accessibility consideration with the bottom:0px fixed positioning 😄). The main thing for me is ease of navigation and to always have context readily available, both in terms of single pages with very long content and within site architecture, especially as we start adding nested sections.

But I also appreciate if @budparr doesn't want the repaints/jank or added JS management.

I don't have an opinion one way or the other on a fixed header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants