What fresh hell is THIS now? - Patrick Lauke
<div>
. :'( I sent them this gist as an example to remediate the issue: https://gist.github.com/svinkle/e093626f74418dc98f187978d1f4e5b7
[morgan] Hi there. I'm struggling to find the right pattern for a simple component. It's a language switch on a small website (on the header). I would have a button that opens a menu from which a language can be picked among three. The action leads to a new page.
Menu button (Navigation Menu Button, Action Menu Button, Button + Button[role="menuitemradio"]), Radio Group...
As a newbie in inclusive design, I'm having a though time to figure out which one to pick.
Any experience to share on something similar? Any advice?
[vavroom] @morgan As a bilingual web user, I have found it clearer if the language options are clearly displayed, rather than having a button for "change language" or some such. My preference would be, and this is not backed up by numbers or studies, just my own bias, it would be to have two links to the other languages not being used at the moment. So if the site is available in English, French, and Italian, and the current page is in English, I'd have two links like FR | IT, or something like that. When one of the links is activated, then the page reloads in the appropriate language.
One thing to avoid for sure: Don't send people away from the content they are looking at. So if your language switcher link loads the same page in an alternate language, that's good. If the switcher sends users back to the homepage, then, not so good. If there is no equivalent page in other languages, don't give language options.
[gokatgo] Hi @quidkid! With respect to making the SPA accessible if you're also using React Router, take a look at this for injecting <head>
element titles for route changes. I'm actually testing out this library myself for an SPA, I'll let you know if I have success with it!