WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Return to Top Link

for

From: Swift, Daniel P.
Date: Oct 17, 2018 8:48AM


JP:

Are you able to provide a link? To me, this sounds like the binding is taking place before the element that it links to is created (when it fails). Does that make sense? When I was developing for SharePoint, I remember encountering a similar situation and that was the cause.

Dan Swift
Senior Web Specialist
Enterprise Services
West Chester University
610.738.0589

-----Original Message-----
From: WebAIM-Forum [mailto: <EMAIL REMOVED> ] On Behalf Of JP Jamous
Sent: Wednesday, October 17, 2018 10:31 AM
To: 'WebAIM Discussion List' < <EMAIL REMOVED> >
Subject: [WebAIM] Return to Top Link

Folks,



Another interesting situation I have on my plate. There is a "Return to Top"
link that is supposed to jump the user to the page content or <main>. It uses a Jquery to perform a page scroll.



I tested the link and sometimes it works and other times it fails. When it fails, it jumps the screen reader user to the top of the DOM. The other concern is that <main> has this markup.



<main id="page-content" tabindex="-1">



I don't like the tabindex="-1" because JAWS in IE causes problems when tabbing.



Any idea what would be the best way to implement this so it is always functional and does not malfunction at times? Any feedback will be greatly appreciated.







--------------------

JP Jamous

Senior Digital Accessibility Engineer

<mailto: <EMAIL REMOVED> > E-Mail Me | <http://linkedin.com/in/JPJamous>; Join My LinkedIn Network

--------------------