Skip to content

UX issues related to search bar location #1860

Closed
@zachallaun

Description

@zachallaun

While I'm generally quite positive on the redesigned search bar, there are a handful of UX issues I've noticed that are a result of its new location at the top of the content portion of the page as opposed to the sidebar (which is sticky).

  1. Least important, but worth mentioning: It is less discoverable, especially if you navigate directly to an anchor link that is farther down the page.
  2. The / search focus keyboard shortcut instantly scrolls you to the top of the page, which is jarring and causes you to lose context. (I am often searching for something related to what I'm looking at.)
  3. Related to 2, the jump to page top causes a loss of scroll history. Consider: you're halfway down a page, press / to search, navigate to a search result, then press the back button. Previously, your browser would restore the scroll position of the page you were originally on, but that is no longer possible as the / caused a scroll to the top of the page.

The easiest way to experiment with this is using the Elixir docs:

This issue is related to #1835, which could be used as inspiration for a solution.

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