Make WordPress Core


Ignore:
Timestamp:
10/07/2015 01:57:06 AM (9 years ago)
Author:
wonderboymusic
Message:

Meta Boxes: reboot some of the code in postbox.js to support aria-expanded attribute toggling and to properly reference static class properties.

Props afercia, wonderboymusic.
Fixes #33754.

File:
1 edited

Legend:

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

    r34826 r34893  
    990990                    echo '<div id="' . $box['id'] . '" class="postbox ' . postbox_classes($box['id'], $page) . $hidden_class . '" ' . '>' . "\n";
    991991                    if ( 'dashboard_browser_nag' != $box['id'] ) {
    992                         echo '<button class="handlediv button-link" title="' . esc_attr__( 'Click to toggle' ) . '" aria-expanded="true">';
    993                         echo '<span class="screen-reader-text">' . sprintf( __( 'Click to toggle %s panel' ), $box['title'] ) . '</span><br />';
     992                        echo '<button type="button" class="handlediv button-link" aria-expanded="true">';
     993                        echo '<span class="screen-reader-text">' . sprintf( __( 'Toggle panel: %s' ), $box['title'] ) . '</span>';
     994                        echo '<span class="toggle-indicator" aria-hidden="true"></span>';
    994995                        echo '</button>';
    995996                    }
Note: See TracChangeset for help on using the changeset viewer.