? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
2 Nov 2017

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

avatar brianteeman brianteeman - open - 2 Nov 2017
avatar brianteeman brianteeman - change - 2 Nov 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 2 Nov 2017
Category Modules Front End
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 2 Nov 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Nov 2017

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.

avatar Quy Quy - test_item - 2 Nov 2017 - Tested successfully
avatar Quy
Quy - comment - 2 Nov 2017

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.

avatar franz-wohlkoenig franz-wohlkoenig - change - 2 Nov 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 2 Nov 2017

RTC after two successful tests.

avatar mbabker mbabker - change - 4 Nov 2017
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: ?
avatar mbabker mbabker - close - 4 Nov 2017
avatar mbabker mbabker - merge - 4 Nov 2017
avatar brianteeman
brianteeman - comment - 4 Nov 2017

Thanks

avatar richard67
richard67 - comment - 7 Nov 2017

@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?

avatar richard67
richard67 - comment - 7 Nov 2017

@brianteeman I made PR #18520 for my previous comment. Please check.

avatar brianteeman
brianteeman - comment - 7 Nov 2017

No because there is no duplicated text

avatar richard67
richard67 - comment - 7 Nov 2017

I noticed meanwhile, sorry for disturbing.

Add a Comment

Login with GitHub to post a comment