Make WordPress Core


Ignore:
Timestamp:
08/26/2015 03:22:57 PM (6 years ago)
Author:
SergeyBiryukov
Message:

Make post meta box toggles accessible.

props joedolson.
fixes #33544.

File:
1 edited

Legend:

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

    r33734 r33762  
    10841084                    $hidden_class = in_array($box['id'], $hidden) ? ' hide-if-js' : '';
    10851085                    echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
    1086                     if ( 'dashboard_browser_nag' != $box['id'] )
    1087                         echo '<div class="handlediv" title="' . esc_attr__('Click to toggle') . '"><br /></div>';
     1086                    if ( 'dashboard_browser_nag' != $box['id'] ) {
     1087                        echo '<button class="handlediv button-link" title="' . esc_attr__( 'Click to toggle' ) . '" aria-expanded="true">';
     1088                        echo '<span class="screen-reader-text">' . sprintf( __( 'Click to toggle %s panel' ), $box['title'] ) . '</span><br />';
     1089                        echo '</button>';
     1090                    }
    10881091                    echo "<h3 class='hndle'><span>{$box['title']}</span></h3>\n";
    10891092                    echo '<div class="inside">' . "\n";
Note: See TracChangeset for help on using the changeset viewer.