The changes in version WPML 4.9 (we're now on 4.9.2) fixed a couple of the issues with accessibility in the custom language switcher but created a new one.
Accessibility checks using SiteImprove now identify an issue where the selector uses the generic text "Language switcher, press tab to navigate to other languages" as the aria-label where it should be the name of the specific option e.g. "English(Ingles)". The same is true of the title tag, which is slightly different than the option text but should match.
Here's the relevant code causing the issue:
<a lang class="js-wpml-ls-item-toggle wpml-ls-item-toggle" aria-current="page" aria-expanded="false" aria-controls="wpml-ls-submenu-default" aria-label="Language switcher, press tab to navigate to other languages" title="Switch to English (English)" href="#">
<span class="wpml-ls-native">English</span>
</a>
Also, it's not an accessibility issue but the new code leaves out a space between the Current language name and its translation e.g. "English(Ingles)"
Is there a workaround for this or is a fix on the roadmap?
Is there something different we should be doing to make sure we're seeing the version with the improved aria tags like the wpml.org page you linked to?
I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.