User tests: Successful: Unsuccessful:
For any container whose contents act as a dialog box (for example, a modal dialog asking the user to make a choice or respond to an action being taken), give it a descriptive label or name, so that assistive technology users can easily discover what its purpose is.
Improvement: Dialog was not accessible before. Whenever we are adding a dialog role we must provide an accessible name for a dialog, which can be done with the aria-label or aria-labelledby attribute.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
@Krshivam25 , can you please provide testing instructions for your PR?
I have tested this item
@jwaisner and @sandramay0905 Just look if the aria-label is added to the dialog after applying the patch.
Instead of duplicating the text it is better to add an id to the heading and use aria-labelledby
you write:
<joomla-alert type="info" dismiss="true" class="js-pstats-alert hidden" role="alertdialog" aria-label="<?php echo Text::_('PLG_SYSTEM_STATS_LABEL_MESSAGE_TITLE'); ?>">
<div class="alert-heading"><?php echo Text::_('PLG_SYSTEM_STATS_LABEL_MESSAGE_TITLE'); ?></div>
and just like @brianteeman writes, you can prevent double text by another implementation...using aria-labelledby
<joomla-alert type="info" dismiss="true" class="js-pstats-alert hidden" role="alertdialog" aria-labelledby="alert-stats-heading">
<div id="alert-stats-heading" class="alert-heading"><?php echo Text::_('PLG_SYSTEM_STATS_LABEL_MESSAGE_TITLE'); ?></div>
Labels |
Added:
?
?
?
|
Labels |
Added:
?
?
Removed: ? ? |
I have tested this item
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Thank you
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-07-21 09:52:42 |
Closed_By | ⇒ | chmst | |
Labels |
Added:
?
?
Removed: ? ? |
Thanks!
@Krshivam25 can you please provide test instructions?