WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/02/2017 07:43:02 PM (3 years ago)
Author:
afercia
Message:

Accessibility: List Tables: use aria-current for the views current link.

The aria-current attribute is a simple, effective way to help assistive
technologies users orientate themselves within a list of items. Continues the
introduction in core of the aria-current attribute after [41359] and [41371].

Props joedolson, flixos90, afercia.
Fixes #32399.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r41399 r41683  
    433433
    434434            if ( 'search' !== $type ) {
    435                 $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
     435                $status_links[$type] = sprintf( "<a href='%s'%s>%s</a>",
    436436                    add_query_arg('plugin_status', $type, 'plugins.php'),
    437                     ( $type === $status ) ? ' class="current"' : '',
     437                    ( $type === $status ) ? ' class="current" aria-current="page"' : '',
    438438                    sprintf( $text, number_format_i18n( $count ) )
    439439                    );
Note: See TracChangeset for help on using the changeset viewer.