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-ms-themes-list-table.php

    r41220 r41683  
    307307
    308308            if ( 'search' != $type ) {
    309                 $status_links[$type] = sprintf( "<a href='%s' %s>%s</a>",
     309                $status_links[$type] = sprintf( "<a href='%s'%s>%s</a>",
    310310                    esc_url( add_query_arg('theme_status', $type, $url) ),
    311                     ( $type === $status ) ? ' class="current"' : '',
     311                    ( $type === $status ) ? ' class="current" aria-current="page"' : '',
    312312                    sprintf( $text, number_format_i18n( $count ) )
    313313                );
Note: See TracChangeset for help on using the changeset viewer.