User tests: Successful: Unsuccessful:
Continuing the work to ensure that screen readers dont try to read the value of a font icon.
This PR could be improved with the use of titles as well if anyone has some suggestions to get the requires strings
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_associations com_categories com_contact com_content com_fields com_modules com_newsfeeds |
Labels |
Added:
?
|
Category | Administration com_associations com_categories com_contact com_content com_fields com_modules com_newsfeeds | ⇒ | Accessibility Administration com_associations com_categories com_contact com_content com_fields com_modules com_newsfeeds |
Title |
|
Here is an idea to get the status strings:
<?php
$iconStates = array(
-2 => array('icon-trash', JText::_('JTRASHED')),
0 => array('icon-unpublish', JText::_('JUNPUBLISHED')),
1 => array('icon-publish', JText::_('JPUBLISHED')),
2 => array('icon-archive', JText::_('JARCHIVED')),
);
?>
<td class="center">
<span class="<?php echo $iconStates[$this->escape($item->state)][0]; ?>" aria-hidden="true"></span> <span class="element-invisible"><?php echo $iconStates[$this->escape($item->state)][1]; ?></span>
</td>
I have tested this item
Code review.
@tonypartridge can you please retest?
Updated branch - no need for new tests
I have just gived it another try.
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-29 13:28:51 |
Closed_By | ⇒ | wilsonge |
Merged on review
Thanks
I have tested this item✅ successfully on 96e1575
Code review.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/15047.