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

add autofocus to search input control #9

Merged
merged 1 commit into from
Aug 2, 2024
Merged

Conversation

inoas
Copy link
Contributor

@inoas inoas commented Jul 24, 2024

I did not test this, I just skimmed through the code on github after seeing that it does not grab focus on entering the page.

Copy link

netlify bot commented Jul 24, 2024

‼️ Deploy request for gloogle-gleam rejected.

Name Link
🔨 Latest commit 4373a8c

@ghivert
Copy link
Owner

ghivert commented Jul 24, 2024

Thanks a lot!

Do you have an opinion on this? I'm concerned about accessibility. I know I'm not the best on this and I'd really like to make Gloogle as much accessible as possible to make sure everyone can use it. 🙂

@adelhult
Copy link

Were also just about to contribute with this change before I found this PR 😅 .

I don’t have much to add about the accessibility concerns, but as a reference: crates and hoogle uses the autofocus attribute and npm does not.

(Awesome work on the website btw @ghivert, it's really nice!).

@inoas
Copy link
Contributor Author

inoas commented Jul 29, 2024

at least it is quick now by pressing s.

@ghivert
Copy link
Owner

ghivert commented Aug 2, 2024

Let's try, and see if someone is bothered or not.

@ghivert ghivert merged commit fb878db into ghivert:main Aug 2, 2024
2 checks passed
@inoas inoas deleted the patch-1 branch August 2, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants