Skip to content

Refactor language picker using icon component#1219

Merged
aduth merged 1 commit intomainfrom
aduth-language-picker-icons
Mar 7, 2024
Merged

Refactor language picker using icon component#1219
aduth merged 1 commit intomainfrom
aduth-language-picker-icons

Conversation

@aduth
Copy link
Copy Markdown
Contributor

@aduth aduth commented Mar 7, 2024

🛠 Summary of changes

Refactors the language picker to use the design system icon component instead of ad hoc images.

This is an incremental step toward upgrading to the latest version of the design system, which removes the images angle-arrow-down.svg and angle-arrow-up.svg which are updated here.

This also aligns to the IdP implementation introduced in 18F/identity-idp#10098, including improvements there to add an animation to the toggle, as well as avoiding flickering appearance of an image when first toggling the dropdown.

📜 Testing Plan

Verify that there are no regressions in the appearance or function of the language picker. Note that there are different language picker interactions between desktop (dropdown) and mobile (static list of options within menu).

Live preview: https://federalist-17bd62cc-77b7-4687-9c62-39b462ce6fd5.sites.pages.cloud.gov/preview/gsa-tts/identity-site/aduth-language-picker-icons/

📸 Screenshots

There may be subtle differences in the appearance of the icons due to differences in the icon implementation, which are expected and an improvement over the current appearance, notably in vertical centering and consistency in height between the selector and the "Sign in with Login.gov" button.

Desktop:

Before After
image image
Before After
image image

Mobile: (identical)

Before After
image image

cc @nickttng

@nickttng
Copy link
Copy Markdown
Contributor

nickttng commented Mar 7, 2024

@aduth Although subtle, it's a nice update. 👍🏼

@aduth aduth force-pushed the aduth-language-picker-icons branch 3 times, most recently from 74ed553 to ce4249c Compare March 7, 2024 18:50
@aduth aduth force-pushed the aduth-language-picker-icons branch from ce4249c to e95d3fa Compare March 7, 2024 19:10
@aduth aduth merged commit 1f1cf18 into main Mar 7, 2024
@aduth aduth deleted the aduth-language-picker-icons branch March 7, 2024 19: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