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

Refactor footer language switcher from <select> to seo-friendly <a> #13484

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ramram-mf
Copy link
Collaborator

@ramram-mf ramram-mf commented Feb 7, 2025

Description

This PR replaces the footer language switcher from an auto-submitting form with <select> and <option> tags, in to a more seo-friendly list of links <a> tags.

It aims to provide a pixel-perfect replacement for visual regression tests while ensuring an accessible interface for users with diverse input methods.

Current dropdown:

image

Updated dropdown:

image

Link to sample test page: https://foundation-s-tp1-1757-i-xhp2iv.herokuapp.com/en/
Related PRs/issues: https://mozilla-hub.atlassian.net/browse/TP1-1757

┆Issue is synchronized with this Jira Story

@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1757-i-ssuky3 February 7, 2025 20:23 Inactive
@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1757-i-ssuky3 February 7, 2025 20:32 Inactive
@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1757-i-ssuky3 February 7, 2025 20:57 Inactive
@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1757-i-ssuky3 February 7, 2025 20:58 Inactive
@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1757-i-fkppmi February 12, 2025 18:57 Inactive
@mofodevops mofodevops temporarily deployed to foundation-s-tp1-1757-i-xhp2iv February 12, 2025 18:58 Inactive
…ns' of github-mf:MozillaFoundation/foundation.mozilla.org into TP1-1757-investigation-localization-fixes-reccomendations
@ramram-mf ramram-mf temporarily deployed to foundation-s-tp1-1757-i-xhp2iv February 12, 2025 19:06 Inactive
Copy link
Collaborator

@mmmavis mmmavis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating the language switcher to enhance our SEO, @ramram-mf ! I noticed that the switcher is not fully keyboard accessible. Could you take a look at the following issues?

  1. The switcher cannot be focused (tapped into) using the keyboard.
  2. When the list is open, users are unable to navigate through the options using the keyboard.
  3. The list cannot be closed using the keyboard.

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