Skip to content

site: search ux #650

@teemingc

Description

@teemingc

Describe the problem

* The current “close search” button for kit.svelte.dev can be easily confused for a clear search button.
* The previous search input is retained when re-opening the search bar, requiring several backspaces to clear it, to look at a different topic afterwards.
* The search bar is not readily accessible on mobile, as it requires opening the menu first.

Describe the proposed solution

  • It could be beneficial to align the use of this button with clearing the search instead of escaping, similar to other search bars such as:
  • Provide a cancel button above it to close the search bar.
  • Might also be useful to have the search bar input cleared after each search so that finding new topics is quicker.
  • Position the search bar button next to the mobile menu button for small screen widths.

Alternatives considered

No response

Importance

would make my life easier

Additional Information

svelte.dev search bar

The X is used to clear the search instead of closing the search

vitejs.dev search bar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions