WordPress.org

Make WordPress Core

Changeset 37330


Ignore:
Timestamp:
04/30/2016 02:32:40 PM (4 years ago)
Author:
afercia
Message:

Accessibility: improve the Star Ratings hiding empty elements for assistive technologies.

Fixes #36725.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/template.php

    r37279 r37330  
    20722072    $output = '<div class="star-rating">';
    20732073    $output .= '<span class="screen-reader-text">' . $title . '</span>';
    2074     $output .= str_repeat( '<div class="star star-full"></div>', $full_stars );
    2075     $output .= str_repeat( '<div class="star star-half"></div>', $half_stars );
    2076     $output .= str_repeat( '<div class="star star-empty"></div>', $empty_stars );
     2074    $output .= str_repeat( '<div class="star star-full" aria-hidden="true"></div>', $full_stars );
     2075    $output .= str_repeat( '<div class="star star-half" aria-hidden="true"></div>', $half_stars );
     2076    $output .= str_repeat( '<div class="star star-empty" aria-hidden="true"></div>', $empty_stars );
    20772077    $output .= '</div>';
    20782078
Note: See TracChangeset for help on using the changeset viewer.