Skip to content

feat: language dropdown enhancements#16010

Merged
wackerow merged 4 commits into
ethereum:devfrom
JoeChenJ:Language_dropdown_enhancements
Sep 10, 2025
Merged

feat: language dropdown enhancements#16010
wackerow merged 4 commits into
ethereum:devfrom
JoeChenJ:Language_dropdown_enhancements

Conversation

@JoeChenJ
Copy link
Copy Markdown
Contributor

@JoeChenJ JoeChenJ commented Aug 3, 2025

Description

  • Makes the dropdown searchable
  • Sorts languages alphabetically

Preview Link

https://deploy-preview-16010--ethereumorg.netlify.app/en/wallets/find-wallet/

Related Issue

Closes #15997

@github-actions github-actions Bot added content 🖋️ This involves copy additions or edits translation 🌍 This is related to our Translation Program labels Aug 3, 2025
@netlify
Copy link
Copy Markdown

netlify Bot commented Aug 3, 2025

Deploy Preview for ethereumorg canceled.

Name Link
🔨 Latest commit b1f60e6
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/68c18e4c0ff8590008c06a0f

key={language.langCode}
value={language.langCode}
className={!isVisible ? "hidden" : ""}
>
Copy link
Copy Markdown
Contributor Author

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

Copy link
Copy Markdown
Member

@wackerow wackerow left a 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:

image

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.

@JoeChenJ
Copy link
Copy Markdown
Contributor Author

JoeChenJ commented Aug 7, 2025

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?

@wackerow
Copy link
Copy Markdown
Member

Hey @JoeChenJ! Sorry for delay, yes please =) A fix for that would be great, but to your point, let's do that in a separate PR.

This looks better, and it's auto-focusing to the input when the menu is clicked... perhaps it's a "nice-to-have", but I'm not able to keyboard navigate with down/up arrows to select my desired option, but it DOES allow me to press "enter" to select the top result when filtering.

I don't see that as a blocker, but will ask @konopkja to chime in if there is any preference

@wackerow wackerow merged commit d4aef19 into ethereum:dev Sep 10, 2025
6 of 7 checks passed
@wackerow
Copy link
Copy Markdown
Member

@all-contributors please add @JoeChenJ for code

@allcontributors
Copy link
Copy Markdown
Contributor

@wackerow

@JoeChenJ already contributed before to code

@pettinarip pettinarip mentioned this pull request Sep 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

content 🖋️ This involves copy additions or edits translation 🌍 This is related to our Translation Program

Projects

None yet

Development

Successfully merging this pull request may close these issues.

change request: language dropdown on find-wallet page enhancements

2 participants