This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
[Refactor] Language switcher button has hardcoded and disallowed attributes #683
Labels
Comments
danny-englander
added a commit
that referenced
this issue
Mar 3, 2023
danny-englander
added a commit
that referenced
this issue
Mar 6, 2023
danny-englander
added a commit
that referenced
this issue
Mar 6, 2023
danny-englander
added a commit
that referenced
this issue
Mar 6, 2023
danny-englander
added a commit
that referenced
this issue
Mar 6, 2023
danny-englander
added a commit
that referenced
this issue
Mar 6, 2023
danny-englander
added a commit
that referenced
this issue
Mar 6, 2023
danny-englander
added a commit
that referenced
this issue
Mar 6, 2023
18 tasks
Contributor
Author
@nehemiah-abuga Ready for testing
|
@danny-englander - On localhost:3000, When I switch languages to Spanish and inspect, href does NOT lead to /en. It has / without "en" value href="/" |
@nehemiah-abuga Thanks for flagging this, my bad, /en is never in the url. I have updated the instructions above. Thank you! |
I have validated this change and it looks good! |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
User Story
As a developer, I need to fix the new header language switcher.
Description
In the multi-life event of the application, the Language switcher button in the new header uses attributes that are not allowed and in addition they are hard coded as well. main...579-nav-changes#diff-83e8a3432a09a97279997b583856e373eb1dda6f55f6e7a532b7541cc6a79b31R33-R42
Here we see that
hreflang
is used both on the<li>
and<button>
tags.hreflang
is only allowed on an anchor tag, e.g.Proposed solution
Since beta.usa.gov uses an anchor tag for the language switcher, we should refactor this and do the same. We should also make the
hreflang
attribute dynamic and not hardcoded as it is now.The text was updated successfully, but these errors were encountered: