? ? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
13 Oct 2017

Improve thew accessibility of the pagination - there are no visual changes

  1. Wrap the pagination in a nav and add a role (needed for IE) and an aria-label
  2. Ensure font icons have aria-hidden=true
  3. Add aria-current to the selected page
  4. Add aria-title to the active links eg Go to page 1

Note 1

that the disabled links will not be announced to a screen reader which is the intended behaviour

Note 3

the list is an unordered list which appears to be the standard as otherwise the links would be announced as Link 1 go to page 2 etc which is nonsense

Note 4

I dont know why but protostar uses an override for pagination instead of the layout. For b/c this PR is just for the override but when approved I will do a similar PR for the layout

Thanks to @fuzzbomb (Drupal 8 Core Accessibility Maintainer) for his advice and reviewing this

avatar joomla-cms-bot joomla-cms-bot - change - 13 Oct 2017
Category Administration Language & Strings Front End Templates (site)
avatar brianteeman brianteeman - open - 13 Oct 2017
avatar brianteeman brianteeman - change - 13 Oct 2017
Status New Pending
avatar brianteeman brianteeman - change - 13 Oct 2017
Labels Added: ? ?
579e774 13 Oct 2017 avatar brianteeman sort
08d0638 13 Oct 2017 avatar brianteeman space
avatar ciar4n ciar4n - test_item - 13 Oct 2017 - Tested successfully
avatar ciar4n
ciar4n - comment - 13 Oct 2017

I have tested this item successfully on 08d0638


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

avatar Quy
Quy - comment - 13 Oct 2017

I would prefer it to say Go to next page rather than Go to page Next. The same goes for Start, Prev, and End. Also should this change to use sprintf?

avatar brianteeman
brianteeman - comment - 13 Oct 2017

@Quy I agree - the sprintf for the page number is easy - will need a little code change for the prev,next strings - i will look at it on sunday

avatar brianteeman
brianteeman - comment - 15 Oct 2017

@Quy I have had a go at the sprintf stuff - it works but maybe you can optimise it and make it DRY

avatar Quy
Quy - comment - 15 Oct 2017

Looks good!

Go to prev page I understand why it is prev, but it would be nice to be previous.

avatar brianteeman
brianteeman - comment - 16 Oct 2017

Changing to previous will have to wait until this is approved and I can work n the pagination layout as well

avatar Quy Quy - test_item - 16 Oct 2017 - Tested successfully
avatar Quy
Quy - comment - 16 Oct 2017

I have tested this item successfully on fa05cc6


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

avatar brianteeman
brianteeman - comment - 17 Oct 2017

See #18357 for similar work on the ISIS template

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Oct 2017

@ciar4n can you please test again?

avatar C-Lodder
C-Lodder - comment - 22 Oct 2017

I'm seeing a lot of <a> elements without href which I think may be an issue for a11y in regards to tab indexing.

@zwiastunsw ?

Could be wrong

avatar brianteeman
brianteeman - comment - 22 Oct 2017

It s perfectly ok because there is no link in there it is ignored. We checked that before submitting as we were not sure either

avatar dgt41
dgt41 - comment - 22 Oct 2017

I'm seeing a lot of elements without href which I think may be an issue for a11y in regards to tab indexing.

Just use href="javascript:void(0)"

avatar brianteeman
brianteeman - comment - 22 Oct 2017

There is no need

avatar zwiastunsw
zwiastunsw - comment - 22 Oct 2017

@brianteeman: Thanks to this work.
In my opinion, no additional nav tag is needed. Just replace the nav tag div in function pagination_list_footer. (This footer is part of navigation).
If you think you want to stay, as you proposed, let us know. Or correct.
And in one case and the other, I will test it successfully.

@C-Lodder:

I'm seeing a lot of elements without href which I think may be an issue for a11y in regards to tab indexing.

It's OK.

avatar ciar4n ciar4n - test_item - 22 Oct 2017 - Tested successfully
avatar ciar4n
ciar4n - comment - 22 Oct 2017

I have tested this item successfully on fa05cc6


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

avatar brianteeman
brianteeman - comment - 22 Oct 2017

The nav tag is absolutely required.and i will not be removing it. Every accessibility source clearly says that this is a requirement. I am not surprised that the a11y team once again chose to do nothing and instead criticise those that actually contribute to making joomla more accessible

avatar zwiastunsw
zwiastunsw - comment - 22 Oct 2017
  1. I am sorry, but you misunderstood, of course, the nav tag is required. I have only proposed to include the whole element. Instead of div tag in function pagination_list_footer use nav tag:
function pagination_list_footer($list)
{
	$html = "<nav role=\"navigation\" aria-label=\"' . JText::_('JLIB_HTML_PAGINATION') . '\" class=\"pagination\">\n";
	$html .= $list['pageslinks'];
	$html .= "\n<input type=\"hidden\" name=\"" . $list['prefix'] . "limitstart\" value=\"" . $list['limitstart'] . "\" />";
	$html .= "\n</nav>";

	return $html;
}
  1. It seems to me that directing, especially at my address, and not for the first time, the comments such as: " I am not surprised that the a11y team once again chose to do nothing and instead criticise those that actually contribute to making joomla more accessible" is at least out of place.

  2. As I wrote earlier - if you leave the code unchanged, also I will test it successfully.

avatar brianteeman
brianteeman - comment - 22 Oct 2017

your code will break the templates i will not be changing it

avatar brianteeman brianteeman - change - 22 Oct 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-10-22 23:23:21
Closed_By brianteeman
avatar brianteeman brianteeman - close - 22 Oct 2017
avatar brianteeman brianteeman - change - 22 Oct 2017
Status Closed New
Closed_Date 2017-10-22 23:23:21
Closed_By brianteeman
avatar brianteeman brianteeman - change - 22 Oct 2017
Status New Pending
avatar brianteeman brianteeman - reopen - 22 Oct 2017
avatar zwiastunsw
zwiastunsw - comment - 22 Oct 2017

OK.

avatar zwiastunsw zwiastunsw - test_item - 22 Oct 2017 - Tested successfully
avatar zwiastunsw
zwiastunsw - comment - 22 Oct 2017

I have tested this item successfully on fa05cc6


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 Oct 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Oct 2017

RTC after 3 successful tests.

avatar mbabker mbabker - change - 23 Oct 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-10-23 23:26:11
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 23 Oct 2017
avatar mbabker mbabker - merge - 23 Oct 2017
avatar brianteeman
brianteeman - comment - 24 Oct 2017

Thanks

Add a Comment

Login with GitHub to post a comment