• Resolved Cedric

    (@kyrdes)


    First of all, thank you for this excellent plugin.

    Would it be possible to add a few accessibility improvements to make it more compliant with WCAG and improve the user experience for keyboard and assistive technology users?Requested improvements

    • Make the language selector fully keyboard accessible:
      • The expandable element should receive keyboard focus.
      • Users should be able to open the language selector and change the language using only the keyboard.
    • Improve the expandable element’s accessibility:
      • Add the aria-expanded="false" attribute to the trigger element by default.
      • Update the attribute to aria-expanded="true" when the language selector is expanded.
      • Ensure the trigger can be activated using the Enter and Space keys.
    • Update image alternative text:
      • The alt attribute of each language image should be updated dynamically.
      • Currently, the alt text remains the same even when the selected language changes, which can be confusing for screen reader users.
      • The alt text should accurately reflect the language represented by each image.
Viewing 1 replies (of 1 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    Not all widget looks are keyboard navigable. You can check the simpler widget looks like Language names, Language codes, Language names /w flags, Language codes /w flags, Dropdown and also Popup with search.

    You can also create your own look using [gt-link ...] shortcode which renders individual language links, you can find examples with it in Positioning tips section.

    If you would like to add particular attributes, you may modify your theme to add additional javascript code which can do the changes you propose.

    I’m not sure I fully understand the part related to the “alt” attribute.

    Thanks! 🙂

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.