Making WordPress.org

Changeset 949


Ignore:
Timestamp:
10/29/2014 04:45:32 PM (10 years ago)
Author:
coffee2code
Message:

Handbook plugin: add tabindex=-1 to table of content headings to prevent disjoined visual/keyboard focus

fixes #687.
props joedolson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php

    r939 r949  
    8080            }
    8181
    82             $replacement .= sprintf( '<%1$s class="toc-heading" id="%2$s">%3$s <a href="#%2$s" class="anchor">#</a></%1$s>', $tag, $id, $item[2] );
     82            $replacement .= sprintf( '<%1$s class="toc-heading" id="%2$s" tabindex="-1">%3$s <a href="#%2$s" class="anchor">#</a></%1$s>', $tag, $id, $item[2] );
    8383            $replacements[] = $replacement;
    8484        }
Note: See TracChangeset for help on using the changeset viewer.