Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Redesign] Focus search element immediately when landing on the front page #4458

Closed
maartenba opened this issue Jul 22, 2017 · 6 comments
Closed

Comments

@maartenba
Copy link
Contributor

It would be nice for the search box to be focused immediately when visiting the new NuGet.org website, much like on NuGet.org vCurrent. This would mean people are able to just start typing, hit enter, find results. No need to move the mouse and click the search box.

@joelverhagen
Copy link
Member

We need to check about the accessibility guidance of this (/cc @MicrosoftSam), but I like the idea.

@NickCraver
Copy link
Contributor

If not on the homepage, it really should still happen on /packages IMO.

@samelhusseini
Copy link

I think a better way to solve this is to provide a mechanism to bypass blocks, since you have content that's repeated on multiple pages (each page has a search box, each page has the menu, and each page has the content section).

This is the "hidden menu" concept we've previously talked about. A menu when focused provides the user the ability to "Jump to Search", or "Jump to Content", or "Change language", etc.

So I think focusing the search box should only be done on pages where that is the likely first intractable element for a user.

MAS Standard in question here: WCAG 2.0 2.4.1 Bypass Blocks

@maartenba
Copy link
Contributor Author

Any chance a "focus the element when user starts typing" could be added within those rules?

@samelhusseini
Copy link

samelhusseini commented Jul 25, 2017

^^ That's what github does. You'd want to make sure you'd on no activeElement in your handler, but that would work.

@joelverhagen
Copy link
Member

Fixed and deployed to https://preview.nuget.org/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants