? ? ? Pending

User tests: Successful: Unsuccessful:

avatar zwiastunsw
zwiastunsw
12 Aug 2017

Summary of Changes

The Pagenavigation plugin displays links to the previous and next article. The text of the links are the words "Prev" and "Next". They do not contain any information about the content/topic of the articles. For display users, tooltips with article titles have been added. For Assistive Technology users - aria-label with information that the link gives access to previous/next article and article title.
Developed by Web Accessibility Team.

Testing Instructions

  1. Start the article list page in one category.
  2. Open the article from the list.
  3. Set the mouse pointer over the links (buttons) Prev and Next. Tooltips should be displayed.
  4. Run a screen reader, such as NVDA (or ChromoVox for Chrome). Move tabs between links. Check that the screen reader correctly announces the purpose of the links to previous and next article

Expected result

  1. Tooltips with linked article title are displayed above the Prev and Next buttons.
  2. The screen reader will announce links to the titles of the articles to which they lead.

Actual result

Currently, the user is not informed exactly about the purpose of the link. The content of the links "previous" and "next" is quite vague.

Documentation Changes Required

  1. No changes to the documentation required - no new functionality introduced.
  2. You need to add two new language constants do administrator/language/en-GB/en-GB.en-GB.plg_content_pagenavigation.ini file
    PLG_PAGENAVIGATION_PREV_A11Y="Access to the previous article: %s"
    PLG_PAGENAVIGATION_NEXT_A11Y="Access to the next article: %s"
avatar joomla-cms-bot joomla-cms-bot - change - 12 Aug 2017
Category Front End Plugins
avatar zwiastunsw zwiastunsw - open - 12 Aug 2017
avatar zwiastunsw zwiastunsw - change - 12 Aug 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Aug 2017
Category Front End Plugins Administration Language & Strings Front End Plugins
avatar zwiastunsw zwiastunsw - change - 12 Aug 2017
Labels Added: ?
avatar zwiastunsw zwiastunsw - change - 12 Aug 2017
The description was changed
avatar zwiastunsw zwiastunsw - edited - 12 Aug 2017
avatar zwiastunsw zwiastunsw - change - 12 Aug 2017
Title
a11y improvment: plugins Pagenavigation
a11y improvement: plugins Pagenavigation
avatar zwiastunsw zwiastunsw - edited - 12 Aug 2017
avatar brianteeman
brianteeman - comment - 12 Aug 2017
  1. Do we really need to add "tooltip"?
  2. Please read the correct way to use sprintf https://docs.joomla.org/Formatted_fields_in_language_translation_strings
avatar zwiastunsw zwiastunsw - change - 12 Aug 2017
Labels Added: ?
avatar zwiastunsw
zwiastunsw - comment - 12 Aug 2017

Thanks, Brian :)

  1. Tooltip is not necessary, but improves accessibility for regular users.
  2. Right, my mistake!
avatar zwiastunsw
zwiastunsw - comment - 12 Aug 2017

@brianteeman, can you add this PR to accessibility category?


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

avatar zwiastunsw zwiastunsw - change - 12 Aug 2017
The description was changed
avatar zwiastunsw zwiastunsw - edited - 12 Aug 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Aug 2017
Category Front End Plugins Administration Language & Strings Accessibility Administration Front End Language & Strings Plugins
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Aug 2017
avatar chmst chmst - test_item - 12 Aug 2017 - Tested successfully
avatar chmst
chmst - comment - 12 Aug 2017

I have tested this item successfully on 3ea8dae

I've tested this item successfully (on 3.7.4), it works as described and is a real improvement.
But I am not sure about the Tooltip.
It seems to me kind of b/c break - template designers do not expect the tooltips here and have to adapt their design?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17508.
avatar brianteeman brianteeman - test_item - 12 Aug 2017 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 12 Aug 2017

I have tested this item ? unsuccessfully on 3ea8dae

Enable full php error reporting and view the source code you will see the following error

<br />
<b>Notice</b>:  Undefined offset: -1 in <b>C:\Apache24\htdocs\cms\plugins\content\pagenavigation\tmpl\default.php</b> on line <b>26</b><br />
<br />
<b>Notice</b>:  Trying to get property of non-object in <b>C:\Apache24\htdocs\cms\plugins\content\pagenavigation\tmpl\default.php</b> on line <b>26</b><br />
PLG_PAGENAVIGATION_NEXT_A11Y```<hr /><sub>This comment was created with the <a href="https://github.com/joomla/jissues">J!Tracker Application</a> at <a href="https://issues.joomla.org/tracker/joomla-cms/17508">issues.joomla.org/tracker/joomla-cms/17508</a>.</sub>
avatar brianteeman
brianteeman - comment - 12 Aug 2017

Note to replicate that error it must be on a page with ONLY a next link


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

avatar brianteeman
brianteeman - comment - 12 Aug 2017

the language strings are in the wrong file. If you apply this PR and check it you will see that ;)

The language file you added the strings to is only loaded in the admin. You probably should put them into en-GB.ini in both the /site and /administrator language folders

Also it would be better if they were simply called something like JNEXT_TITLE and JPREVIOUS_TITLE

Finally for accessibility we should not include words such as link to, image to, access to as they are redundant words as many AT will add that text automatically. eg in this example they would announce "link to access to next article: article name"

It is enough to simply say "next article: article name"

So I would suggest the strings should be

JNEXT_TITLE="Next article: %s"
JPREVIOUS_TITLE="Previous article: %s"

avatar chmst
chmst - comment - 12 Aug 2017

Language files for plugins are always and only in the admin language folder?

avatar brianteeman
brianteeman - comment - 12 Aug 2017

@chmst maybe its a different bug then but whatever it is they are not being loaded and I would still put them in a global language file so that they can be reused

avatar chmst
chmst - comment - 12 Aug 2017

@brian, yes, this is a different bug and as I see, you have already opened an issue.

avatar brianteeman
brianteeman - comment - 12 Aug 2017

@chmst no that issue is not related - that one is only a cosmetic issue - nothing to do with this pr

avatar zwiastunsw
zwiastunsw - comment - 12 Aug 2017

@brianteeman Thank you for your correct suggestions!

avatar brianteeman brianteeman - test_item - 12 Aug 2017 - Tested successfully
avatar brianteeman
brianteeman - comment - 12 Aug 2017

I have tested this item successfully on 1f09f3c


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

avatar brianteeman brianteeman - test_item - 12 Aug 2017 - Tested successfully
avatar brianteeman
brianteeman - comment - 12 Aug 2017

I have tested this item successfully on 991dfcc

retest after cs fixes


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Aug 2017

@chmst can you please retest?

avatar chmst chmst - test_item - 12 Aug 2017 - Tested successfully
avatar chmst
chmst - comment - 12 Aug 2017

I have tested this item successfully on 991dfcc


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

avatar wojsmol
wojsmol - comment - 12 Aug 2017

@franz-wohlkoenig Please set RTC after 2 succesfull tests.

avatar franz-wohlkoenig franz-wohlkoenig - change - 12 Aug 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 12 Aug 2017

RTC after two successful tests.

avatar joomla-cms-bot joomla-cms-bot - change - 13 Aug 2017
Category Front End Plugins Administration Language & Strings Accessibility Administration Language & Strings Front End com_content Plugins Accessibility
avatar zwiastunsw zwiastunsw - change - 13 Aug 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 13 Aug 2017
Category Front End Plugins Administration Language & Strings Accessibility com_content Administration Language & Strings Front End Plugins Accessibility
avatar mbabker mbabker - change - 13 Aug 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-08-13 15:39:47
Closed_By mbabker
avatar mbabker mbabker - close - 13 Aug 2017
avatar mbabker mbabker - merge - 13 Aug 2017

Add a Comment

Login with GitHub to post a comment