New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Dialoges Should be labeled #34383
Conversation
@Krshivam25 can you please provide test instructions? |
@Krshivam25 , can you please provide testing instructions for your PR? |
I have tested this item ✅ successfully on a3f8154 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34383. |
@jwaisner and @sandramay0905 Just look if the aria-label is added to the dialog after applying the patch. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34383. |
Instead of duplicating the text it is better to add an id to the heading and use aria-labelledby |
you write:
and just like @brianteeman writes, you can prevent double text by another implementation...using
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you have added:
<div id="alert-stats-heading" class="alert-heading"><?php echo Text::_('PLG_SYSTEM_STATS_LABEL_MESSAGE_TITLE'); ?></div>
please remove
<div class="alert-heading"><?php echo Text::_('PLG_SYSTEM_STATS_LABEL_MESSAGE_TITLE'); ?></div>
there is a duplicate alert-heading now
I have tested this item ✅ successfully on bbde261 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34383. |
1 similar comment
I have tested this item ✅ successfully on bbde261 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34383. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/34383. |
Thank you |
Thanks! |
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.
Testing Instructions :
Arrow Indicating Dialog box .
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.