In this Article
What is a scrollable region?
Scrollable regions are areas on a webpage where the content is too large to fit in its given area, resulting in the appearance of scroll bars (horizontal and/or vertical) to navigate the content.
What is keyboard access for scrollable regions?
Keyboard access refers to the situation when a user is only using a keyboard to access and navigate your site.
As users tab through the content on your page, they must be able to either focus directly on the scrollable region on the page or a static text element within it.
Keyboard navigation should continue smoothly when the focus moves to an element within a scrollable area.
How to Make an Element Focusable
If you have an element (div, p, etc.) with a Failure Summary containing 'Element should be focusable', add a tabindex="0"
attribute to the scrollable element to make it focusable.
<div class="widget" tabindex="0">
It is best practice to always put a tabindex="0"
on either:
the scrollable region OR
a static element within the region.
Element Should have Focusable Content
This Failure Summary refers to adding a tabindex="0"
to a static item within the scrollable area.
This flag occurs when an HTML element or any part of one is determined by the user agent to be a focusable area, for example:
links
form fields
To remedy this issue, add tabindex="0"
to the element mentioned in the Element Source.
Common Issues
Podcast iframes
More on using tabindex
Learn More with WCAG & W3C
If you have questions, please contact our DubBot Support team via email at help@dubbot.com or via the blue chat bubble in the lower right corner of your screen. We are here to help!