kit icon indicating copy to clipboard operation
kit copied to clipboard

site: search ux

Open teemingc opened this issue 2 years ago • 5 comments

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 would be beneficial to align the use of this button with clearing the search, similar to other search bars such as:
    • https://vitejs.dev/guide/
    • https://duckduckgo.com/
    • https://www.google.com/
  • 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

kit.svelte.dev search bar

vitejs.dev search bar

teemingc avatar Jan 22 '23 06:01 teemingc

I 100% agree current search is far away from perfect.

stalkerg avatar Jan 22 '23 17:01 stalkerg

As a "nice to have", if the search input could be populated using query string, kit.svelte.dev/docs?query=whatever, then it'd allow Raycast users & others to create QuickLinks that go directly to their query result, such as Raycast allows for YouTube and other services that offer search in such a format. It'd remove a step and make it faster.

jasongitmail avatar Jun 17 '23 05:06 jasongitmail

@PuruVJ have any of these concerns already been covered in the new svelte doc site?

PS: excited for the impending release! :)

teemingc avatar Jun 18 '23 07:06 teemingc

@s3812497 Found out about it yesterday only, but will try my best to include them 😁

PuruVJ avatar Jun 18 '23 07:06 PuruVJ

@jasongitmail you can do that on the SvelteKit dedicated search page (which exists for progressive enhancement purposes): https://kit.svelte.dev/search?q=load

geoffrich avatar Jun 20 '23 17:06 geoffrich