? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
29 Mar 2017

When reading our default markup for rendering icons, assisistive technology may have the following problems.

The assistive technology will not find any content to read out to a user
The assistive technology will read the unicode equivalent, which does not match up to what the icon means in context, or worse is just plain confusing. In our use case it is always plain wrong. For example the unicode character used to display the trashed icon is \4c which is equal to L

When an icon is not an interactive element the simplest way to provide a text alternative is to use the aria-hidden="true" attribute on the icon and to include the text with an additional element, such as a < span>, with appropriate CSS to visually hide the element while keeping it accessible to assistive technologies.

In this case we have the text and it is displayed so we just need to add the aria-hidden to prevent the icon being "read aloud"

This PR addresses the use case shown in the image below
screenshotr12-51-13

avatar brianteeman brianteeman - open - 29 Mar 2017
avatar brianteeman brianteeman - change - 29 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Mar 2017
Category Administration com_languages
avatar C-Lodder
C-Lodder - comment - 29 Mar 2017

Was the element-invisible class introduced in Joomla for screenreaders, or just to hide elements? If it's for screenreaders, it should be updated, to include clip-path, along with some other tweaks: https://github.com/twbs/bootstrap/blob/ca8320a64567091e69521565c75af4363db73d2b/scss/mixins/_screen-reader.scss

avatar brianteeman
brianteeman - comment - 29 Mar 2017

Just for screen readers if i remember correctly - but any changes to that
css are beyond the scope of this PR ;)

http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
Virus-free.
www.avg.com
http://www.avg.com/email-signature?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On 29 March 2017 at 13:34, Lodder notifications@github.com wrote:

Was the element-invisible class introduced in Joomla for screenreaders,
or just to hide elements? If it's for screenreaders, it should be updated,
to include clip-path, along with some other tweaks:
https://github.com/twbs/bootstrap/blob/ca8320a64567091e69521565c75af4
363db73d2b/scss/mixins/_screen-reader.scss


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#14988 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8UhhyA3j_Amp4S0kxk5hWOZhg_CJks5rqk_YgaJpZM4Ms323
.

--
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar Quy
Quy - comment - 29 Mar 2017

Per an example from fontawesome.io,

    <i class="fa fa-car" aria-hidden="true" title="Time to destination by car"></i>
    <span class="sr-only">Time to destination by car:</span>

should:

<span class="icon-pending" aria-hidden="true"><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span></span>

be:

<span class="icon-pending" aria-hidden="true"></span><span class="element-invisible"><?php echo JText::_('WARNING'); ?></span>

I don't know if it matters.

avatar brianteeman
brianteeman - comment - 29 Mar 2017

@C-Lodder thoughts

avatar C-Lodder
C-Lodder - comment - 30 Mar 2017

I believe @Quy is correct.

avatar brianteeman
brianteeman - comment - 30 Mar 2017

Thanks I will update this

avatar brianteeman brianteeman - change - 30 Mar 2017
Labels Added: ?
avatar brianteeman
brianteeman - comment - 30 Mar 2017

@quy @C-Lodder updated - thanks

avatar Quy Quy - test_item - 30 Mar 2017 - Tested successfully
avatar Quy
Quy - comment - 30 Mar 2017

I have tested this item successfully on 502175b

Code review.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14988.

avatar BiancaCrown BiancaCrown - test_item - 31 Mar 2017 - Tested successfully
avatar BiancaCrown
BiancaCrown - comment - 31 Mar 2017

I have tested this item successfully on 502175b

Before applying the patch we see there is no aria-invalid on the icons in the multi-language status, after applying the patch I see the aria-invalid=true is set on the icons.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14988.

avatar franz-wohlkoenig franz-wohlkoenig - change - 31 Mar 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 31 Mar 2017

RTC after two successful testes.

avatar wilsonge wilsonge - change - 1 Apr 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-01 22:06:08
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 1 Apr 2017
avatar wilsonge wilsonge - merge - 1 Apr 2017

Add a Comment

Login with GitHub to post a comment