Make WordPress Core


Ignore:
Timestamp:
10/19/2015 10:03:48 PM (11 years ago)
Author:
afercia
Message:

Accessibility: Improve the headings hierarchy in the Add Themes screen.

Fixes #33819.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/theme-install.php

    r35006 r35273  
    154154                $feature_list = get_theme_feature_list();
    155155                foreach ( $feature_list as $feature_name => $features ) {
    156                         echo '<div class="filter-group">';
     156                        echo '<fieldset class="filter-group">';
    157157                        $feature_name = esc_html( $feature_name );
    158                         echo '<h4>' . $feature_name . '</h4>';
    159                         echo '<ol class="feature-group">';
     158                        echo '<legend>' . $feature_name . '</legend>';
     159                        echo '<div class="filter-group-feature">';
    160160                        foreach ( $features as $feature => $feature_name ) {
    161161                                $feature = esc_attr( $feature );
    162                                 echo '<li><input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ';
    163                                 echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label></li>';
     162                                echo '<input type="checkbox" id="filter-id-' . $feature . '" value="' . $feature . '" /> ';
     163                                echo '<label for="filter-id-' . $feature . '">' . $feature_name . '</label><br>';
    164164                        }
    165                         echo '</ol>';
    166165                        echo '</div>';
     166                        echo '</fieldset>';
    167167                }
    168168                ?>
Note: See TracChangeset for help on using the changeset viewer.