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

chore(language-menu): use proper <a> tags #9505

Merged
merged 1 commit into from
Aug 29, 2023
Merged

Conversation

LeoMcA
Copy link
Member

@LeoMcA LeoMcA commented Aug 16, 2023

Summary

https://github.com/orgs/mdn/discussions/365

Problem

The buttons in the dropdown language switcher menu, being buttons, couldn't be middle clicked to open in another tab.

Solution

Make them <a> tags, also remove another use of client side nav


How did you test this change?

  • yarn && yarn dev
  • tested on a few pages on localhost:3000
  • manually looked at cookies in devtools to verify that they updated
  • didn't test GA, do we want to migrate this to glean, or remove the measurement entirely?

@LeoMcA LeoMcA requested a review from fiji-flo August 16, 2023 16:01
@LeoMcA LeoMcA changed the title chore(language-switcher): use proper <a> tags chore(language-menu): use proper <a> tags Aug 16, 2023
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

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

Nice.

@fiji-flo fiji-flo merged commit af58be3 into main Aug 29, 2023
15 checks passed
@fiji-flo fiji-flo deleted the language-menu-links branch August 29, 2023 13:32
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.

None yet

2 participants