- Issue created by @rkoller
- 🇩🇪Germany anacolautti
First of all, thank you for bringing this up, and sorry for the delay in my response.
I think this is a good idea, but I fear the aria-labels might not be adequate if we change this.
Until now, I wrote the aria-labels thinking about the action of the button, which is to either show or hide the password content.
If we change this, the default state of the button would bearia-pressed="false"
, so the aria label of the button should be something like "password is hidden", and when pressed (aria-pressed="true"
) it would be something like "password is visible".Do we agree on this?
Can anyone suggest better texts for these aria labels?
Keep in mind, that updating the aria labels implies updating the translations each site may have done customly and the contrib translations here https://localize.drupal.org/translate/projects/view_password