User tests: Successful: Unsuccessful:
Currently the alt tag for the flags shown (if enabled and a dropdown) for a language in the frontend module language switcher lists is the same as the text next to it. This is not correct as the alt text should not be the same as the text. In addition if an image is only used for decorative purposes then the alt tag should be blank so that screen readers will not announce it.
WCAG 2.0
1.1.1 Non-text Content - All non-text content that is presented to the user has a text alternative that serves the equivalent purpose (some exceptions). (Level A)
Note: If non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it does not need text alternatives.
To test create a multilingual web site and then publish the language switcher module with
Use Dropdown - Yes
Use Flags For Dropdown - Yes
After this PR you will see that there is NO alt or title tags
For extra credit check all the other module options that display a flag and you will see that the alt and title tags are still present
Status | New | ⇒ | Pending |
Category | ⇒ | Modules Front End |
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful tests.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-11-04 14:36:48 |
Closed_By | ⇒ | mbabker | |
Labels |
Added:
?
|
Thanks
@brianteeman Should the empty alt text for the flags images not have been done in general, i.e. not only when drop-down list but also when flags side-by-side in a row?
@brianteeman I made PR #18520 for my previous comment. Please check.
No because there is no duplicated text
I noticed meanwhile, sorry for disturbing.
I have tested this item✅ successfully on f938b0d
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18475.