User tests: Successful: Unsuccessful:
This fixes a very big a11y issue.
In all list views we start the row with a check box. This check box has no label which is not good AND when using assistive technology such as a screen reader it will only indicate the word "select". It doesn't indicate what you are selecting. As the title (the item you are selecting) is several steps away from the select box you are stuck with a select with no meaning.
Now a screenreader will see this chick box as "Select '%ArticleName%"
we already do something similar in the actions dropdown - see https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/html/actionsdropdown.php#L41
reference for the a11y technique used http://www.coolfields.co.uk/2011/04/accessible-forms-should-every-input-have-a-label/
This is fully backwards compatible
If there is documentation how to use grid then it will need updating to provide info about the new optional param
Status | New | ⇒ | Pending |
Category | ⇒ | Libraries |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-05-05 18:32:49 |
Closed_By | ⇒ | brianteeman | |
Labels |
Added:
?
|
Status | Closed | ⇒ | New |
Closed_Date | 2017-05-05 18:32:49 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Status | New | ⇒ | Pending |
Category | Libraries | ⇒ | Administration com_banners com_content Libraries |
Category | Libraries Administration com_banners com_content | ⇒ | Administration com_banners com_categories com_checkin com_contact com_content com_fields com_finder com_installer com_languages com_menus com_messages com_modules com_newsfeeds com_plugins com_redirect com_tags com_templates com_users |
Title |
|
Title |
|
This is fully backwards compatible
This one looks not B/c currently as we reorder the options to be passed. I would agree if we add the new option at the end of the method signature with a default value but currently this looks for me as a b/c break.
:( any suggestions to address that
Like i said above move the new option (title) to the end of the method signature with a default value :)
It should work ;) i can send you a PR tomorrow.
I tested this PR with jevents and acymailing which both use grid and it worked fine as far as I could see
Discovered a bug in some views where they dont use item->title but item->name such as com_contact
Fixed
I understand the changes I need to make for b/c now.and will do it this afternoon
Category | Administration com_banners com_content com_categories com_checkin com_contact com_fields com_finder com_installer com_languages com_menus com_messages com_modules com_newsfeeds com_plugins com_redirect com_tags com_templates com_users | ⇒ | Administration com_banners com_categories com_checkin com_contact com_content com_contenthistory com_fields com_finder com_installer com_languages com_menus com_messages com_modules com_newsfeeds com_plugins com_redirect com_tags com_templates com_users |
No, testing html output doesn't makes so much sense.
ok - thanks - wasnt sure as it touched a library file - thanks for confirming
Please check if these files need to be updated. Thanks.
\administrator\components\com_cache\views\cache\tmpl\default.php (line 59)
\administrator\components\com_installer\views\discover\tmpl\default_item.php (line 14)
\installation\view\languages\tmpl\default.php (line 95)
\administrator\templates\hathor\html\com_cache\cache\default.php (liine 64)
\administrator\components\com_media\views\medialist\tmpl\details_folders.php (line 19)
\administrator\components\com_media\views\medialist\tmpl\thumbs_folders.php (line 18)
\administrator\templates\isis\html\com_media\medialist\thumbs_folders.php (line 18)
\installation\view\languages\tmpl\default.php (line 95)
@Quy
Missing these was deliberate as media manager is being replaced and hathor is virtually dead
\administrator\templates\hathor\html\com_cache\cache\default.php (liine 64)
\administrator\components\com_media\views\medialist\tmpl\details_folders.php (line 19)
\administrator\components\com_media\views\medialist\tmpl\thumbs_folders.php (line 18)
\administrator\templates\isis\html\com_media\medialist\thumbs_folders.php (line 18)
These ones are not using grid.id and beyond the scope of this PR
\administrator\components\com_cache\views\cache\tmpl\default.php (line 59)
\administrator\components\com_installer\views\discover\tmpl\default_item.php (line 14)
\installation\view\languages\tmpl\default.php (line 95)
\installation\view\languages\tmpl\default.php (line 95)
Please note that with the Select
, the title is Red & Blue
and the rest is Red & Blue
. I am not sure what is the best way to escape the title value. Maybe escape it in the parameter like this:
<?php echo JHtml::_('grid.id', $i, $item->id, false, 'cid', 'cb', $this->escape($item->title)); ?>
<td class="center">
<label for="cb0"><span class="element-invisible">Select Red & Blue</span></label><input type="checkbox" id="cb0" name="cid[]" value="2" onclick="Joomla.isChecked(this.checked);" /> </td>
<td class="center">
<div class="btn-group">
<a class="btn btn-micro active hasTooltip" href="javascript:void(0);" onclick="return listItemTask('cb0','tags.unpublish')" title="Unpublish Item"><span class="icon-publish"></span></a> <button data-toggle="dropdown" class="dropdown-toggle btn btn-micro"><span class="caret"></span><span class="element-invisible">Actions for: Red & Blue</span></button><ul class="dropdown-menu"><li><a href = "javascript://" onclick="listItemTask('cb0', 'tags.archive')"><span class="icon-archive"></span> Archive</a></li><li><a href = "javascript://" onclick="listItemTask('cb0', 'tags.trash')"><span class="icon-trash"></span> Trash</a></li></ul> </div>
</td>
<td>
<a href="/joomla-cms/administrator/index.php?option=com_tags&task=tag.edit&id=2">
Red & Blue</a>
<span class="small" title="red">
(<span>Alias</span>: red) </span>
</td>
I dont see a reason for this not to be merged - the comments above appear to be beyond the scope of this PR
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-06-14 19:53:40 |
Closed_By | ⇒ | brianteeman |
Status | Closed | ⇒ | New |
Closed_Date | 2017-06-14 19:53:40 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Status | New | ⇒ | Pending |
To reproduce, edit an article and click Versions
button.
PHP Notice: Undefined property: stdClass::$id in C:\xampp\htdocs\joomla-cms\administrator\components\com_contenthistory\views\history\tmpl\modal.php on line 145
What's happening with this?
Lost interest and the a11y team show no interest in improving a11y
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-03-25 14:31:16 |
Closed_By | ⇒ | brianteeman |
re-opening to see if it is still valid
Status | Closed | ⇒ | New |
Closed_Date | 2018-03-25 14:31:16 | ⇒ | |
Closed_By | brianteeman | ⇒ |
Status | New | ⇒ | Pending |
Title |
|
as it was for staging and I did it for 4 already closing permanently now ;)
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-06 09:46:06 |
Closed_By | ⇒ | brianteeman | |
Labels |
Added:
?
|
@zero-24 can you advise on the best way to make the change required by drone please