Skip to content

Bottom spy isn't great with short pages #222

@skolverket-jonmar

Description

@skolverket-jonmar

The bottom spy functionality is great for taller pages with the last element being too short to reach the offset, but for pages where the content always reaches the bottom of the page the last element will always be active. And clicking the other elements in the navlist doesn't do anything, the last element stays active anyway. That doesn't do great UX. At least make the clicked element active though it doesn't result in any scrolling (due to the page always reaching the bottom).

Another problem this results in is that when entering the page the last navlist element is automatically active, which doesn't make sense since the user hasn't chosen to be navigated to the last element. The first element should be active if the user hasn't chosen anything else.

It just seems messy to start coding around these problems, but has anyone else had the same problem and solved it in any way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions