Skip to content

["short description"] when user clicks a new side nav link, auto scroll to top of new page instead of staying at the same spot on the page #4403

@jknilans

Description

@jknilans

Is this a new page or a change to an existing one?
This is a change to all the existing pages on the PatternFly 6 website. The previous versions of the website have the correct interaction and don't need to be updated.

Describe the enhancement
Currently the default behavior when a person clicks from one detail page to another is to land the user at the same scroll position as the previous page they were on. So for example, if I was at the bottom of of the "Modal" page, and click the link to view the detail page for "Alert" or "About tokens" etc, the first thing I see when the new page loads is the the bottom of the new page because we keep the same scroll position when moving from one page to another. Users should instead be scrolled to the top of the new page so they can immediately identify where they are and what they're viewing instead of landing halfway down the page and losing context of what the page name is.

This behavior happens on all sub pages on the PatternFly website.

Are there visuals for this enhancement? If applicable, please include examples for each state and for varying widths
No visual changes needed, just an updated interaction is needed to scroll to the top of the new page when a nav link is clicked.

Any other information?
Here's a link to to the current behavior. RH authentication needed to view video. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions