? Success

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
17 Oct 2016

For accessibility purposes all links should be meaningful and the current back to top link in the protostar template is just a # which is not meaningful.
Web Content Accessibility Guidelines (WCAG) 2.0, Level A: 4.1.2 Name, Role, Value

Also added an anchor at the top so that this "back to top" functionality will work on a non-js enabled browser

Summary of Changes

This simple PR turns the link to #top and adds an ID to the body

Testing Instructions

  1. Apply the PR and ensure that the back to top link in protostar still works
  2. Apply the PR, disable JS in your browser and ensure hat the back to top link in protostar will work

Documentation Changes Required

none

avatar brianteeman brianteeman - open - 17 Oct 2016
avatar brianteeman brianteeman - change - 17 Oct 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2016
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 17 Oct 2016
Category Front End Templates (site)
avatar zero-24 zero-24 - change - 17 Oct 2016
Milestone Added:
avatar andrepereiradasilva
andrepereiradasilva - comment - 17 Oct 2016

@brianteeman this does not seem correct. you are pointng the href to the back to top link element itself.

IIRC to achieve that W3C WCAG complience you need to point to an element in the top (so the window scrolls to there).
so probably you need to add an id="top" in the body tag or something and then point this link to that tag href="#top"

avatar brianteeman
brianteeman - comment - 17 Oct 2016

My reading was that the link has to be meaningful. "Back-top" is meaningful
and as its functionality in the template is performed by JS to go to the
top of the page there is no need for the id=top

On 17 October 2016 at 14:18, andrepereiradasilva notifications@github.com
wrote:

@brianteeman https://github.com/brianteeman this does not seem correct.
you are pointng the href to the back to top link element itself.

IIRC to achieve that W3C WCAG complience you need to point to an element
in the top (so the window scrolls to there).
so probably you need to add an id="top" in the body tag or something and
then point this link to that tag href="#top"


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12446 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABPH8RAyPkH6TKPr03mvY1fCwUbAjCaNks5q03WIgaJpZM4KYmsd
.

Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
https://brian.teeman.net/ http://brian.teeman.net/

avatar brianteeman
brianteeman - comment - 17 Oct 2016

DOH - sorry - my brain was not on correct - I have changed it to #top

I still dont think there is a need for the id=top

avatar brianteeman brianteeman - change - 17 Oct 2016
The description was changed
avatar brianteeman brianteeman - edited - 17 Oct 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 17 Oct 2016

you should have the id="top" somewhere in the top html of the page for correctness, if not, you are pointing that anchor element (a) to nowhere in the page ...
if we have js behaviour doing a pretty scroll is another thing, but should work without the js.

avatar brianteeman
brianteeman - comment - 17 Oct 2016

Ok I will add it for the non js users. Although that's really unrelated to
the pr

avatar brianteeman
brianteeman - comment - 17 Oct 2016

Added an anchor for not JS enabled browsers. added test instructions to OP

avatar brianteeman brianteeman - change - 17 Oct 2016
The description was changed
avatar brianteeman brianteeman - edited - 17 Oct 2016
avatar andrepereiradasilva
andrepereiradasilva - comment - 17 Oct 2016

tested with success (didn't work on the tracker) so i write manually here

avatar brianteeman brianteeman - alter_testresult - 17 Oct 2016 - andrepereiradasilva: Tested successfully
avatar andrepereiradasilva andrepereiradasilva - test_item - 17 Oct 2016 - Tested successfully
avatar andrepereiradasilva
andrepereiradasilva - comment - 17 Oct 2016

I have tested this item successfully on 4fae720


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

avatar jeckodevelopment jeckodevelopment - test_item - 17 Oct 2016 - Tested successfully
avatar jeckodevelopment
jeckodevelopment - comment - 17 Oct 2016

I have tested this item successfully on 4fae720


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

avatar C-Lodder C-Lodder - test_item - 18 Oct 2016 - Tested successfully
avatar C-Lodder
C-Lodder - comment - 18 Oct 2016

I have tested this item successfully on 4fae720

Oops, that was my bad.


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

avatar jeckodevelopment jeckodevelopment - change - 18 Oct 2016
Status Pending Ready to Commit
avatar jeckodevelopment
jeckodevelopment - comment - 18 Oct 2016

RTC


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

avatar jeckodevelopment jeckodevelopment - edited - 18 Oct 2016
avatar jeckodevelopment jeckodevelopment - change - 18 Oct 2016
Title
[a11y] Protostar back to top
[a11y] Protostar back to top
avatar joomla-cms-bot joomla-cms-bot - change - 18 Oct 2016
Labels Added: ?
avatar rdeutz rdeutz - close - 25 Oct 2016
avatar rdeutz rdeutz - merge - 25 Oct 2016
avatar joomla-cms-bot joomla-cms-bot - close - 25 Oct 2016
avatar rdeutz rdeutz - reference | 4d44c25 - 25 Oct 16
avatar rdeutz rdeutz - merge - 25 Oct 2016
avatar rdeutz rdeutz - close - 25 Oct 2016
avatar rdeutz rdeutz - change - 25 Oct 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-25 17:36:37
Closed_By rdeutz
avatar rdeutz rdeutz - reference | b62280b - 25 Oct 16
avatar brianteeman brianteeman - head_ref_deleted - 25 Oct 2016
avatar brianteeman
brianteeman - comment - 25 Oct 2016

-Thanks

On 25 Oct 2016 6:36 p.m., "Robert Deutz" notifications@github.com wrote:

Merged #12446 #12446.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#12446 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABPH8epsMtlVeQFQX1bD-5XuPAtuEsrFks5q3j4lgaJpZM4KYmsd
.

avatar joomla-cms-bot joomla-cms-bot - change - 25 Oct 2016
Labels Removed: ?
avatar rdeutz
rdeutz - comment - 25 Oct 2016

btw. I cherry picked the commit and merged it also into staging, spotted too late that it was based for 3.7.x

Add a Comment

Login with GitHub to post a comment