Skip to content

Override bootstrap's scroll-behavior: smooth to improve UX? #2260

@lagru

Description

@lagru

This is a usability suggestion and might be somewhat subjective. Especially for larger pages in scikit-image's API documentation, I've perceived the navigation with the right sidebar TOC as annoyingly slow. When I click an anchor link, my browser can take around a second to scroll to the target. This is a small paper cut but it adds up.

I finally figured out that this is due to bootstrap setting scroll-behavior: smooth (MDN reference for scroll-behavior). I'm aware that we can trivially override this in scikit-image and I intend to suggest that.

But I'm also wondering if using scroll-behavior: auto would be an improvement for this theme. If I understand correctly, animations can decrease accessibility and be disorienting. So it might be useful in that regard too. In any case, I don't understand the UX purpose of this animated scroll.

I'd be happy to do a PR for this. But if somebody already knows where the fix goes, please go ahead!

(Background reading: You dont need animations. That finally pushed me to investigate this issue.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions