Remove the "outline: none;" style from focused tabs

Created on 31 January 2013, almost 12 years ago
Updated 29 April 2024, 7 months ago

This is an issue for users who use their keyboard to navigate through the page via the TAB key. When a user reaches the Quicktabs tab list they receive no visual feedback that they've arrived there. That's because the focus outline has been removed from the tab links. At best this may cause a little confusion because the user wonders why focus suddenly disappeared. At worst, the user may have no idea where their focus is on the page, for instance if focus jumped way down the page to the Quicktabs from the previous focusable element.

The visual indication of the tab changing from one to another is not sufficient to indicate focus either. That's because some styles may not be accessible in the first place. For instance, the tab borders of the Tabs Bar style have very low color contrast. Some users may not be able to see the tab change. So while the initial tab focus is the primary problem the tabs style may not do anything to make up for it. The tabs must be allowed to have a focus outline.

This problem is further compounded by the fact that the CSS selector for removing focus outlines has high specificity. Not only does it override any theme's existing focus outline behavior, it's a pain to try and correct.

Proposed Resolution

Remove the outline: none; style.

Inital Report

Just horrible:

ul.quicktabs-tabs li a:focus {
  outline: none;
}

http://www.outlinenone.com/

If a theme really wants this, it's SO very easy to add it. It is, however, impossible to undo it.

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands rudiedirkx

Live updates comments and jobs are added and updated live.
  • Accessibility

    It affects the ability of people with disabilities or special needs (such as blindness or color-blindness) to use Drupal.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024