-
Notifications
You must be signed in to change notification settings - Fork 5.1k
feat: language dropdown enhancements #16010
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
base: dev
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for ethereumorg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
key={language.langCode} | ||
value={language.langCode} | ||
className={!isVisible ? "hidden" : ""} | ||
> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using hidden
here instead of filtering the array directly, to avoid SelectValue
losing its value and in turn leads to Input
losing focus when searchQuery
changes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @JoeChenJ!
Couple things I'm noticing on initial glance:

Seeing a layout bug (Brave and Safari) with space above the input which looks poor visually.
Also, in my opinion, focus should be set to the search input upon entering that menu. Should be able to click once and start typing, and ideally "enter" executes top match (feel free to weigh in if you disagree @konopkja)
Right now when I click, I can't even tab into that field by keyboard, which we should be able to for good a11y.
Thanks for the feedback @wackerow! Just pushed a commit for those issues. I also noticed the same issues in the wallet dropdown on layer-2/networks page. Should I fix that here as well or open another pr? |
Description
Preview Link
https://deploy-preview-16010--ethereumorg.netlify.app/en/wallets/find-wallet/
Related Issue
Closes #15997