Make WordPress Core

Ticket #37013: 37013.2.diff

File 37013.2.diff, 3.9 KB (added by mihai2u, 9 years ago)
  • src/wp-admin/css/common.css

    diff --git src/wp-admin/css/common.css src/wp-admin/css/common.css
    index 0ffe623..2eb0e05 100644
    img { 
    30003000        content: "\f140";
    30013001}
    30023002
    3003 .js .sidebar-name .sidebar-name-arrow:before {
    3004         padding: 10px;
    3005         left: 0;
    3006 }
    3007 
    30083003.js #widgets-left .sidebar-name .sidebar-name-arrow {
    30093004        display: none;
    30103005}
    img { 
    31843179}
    31853180
    31863181.widget-top a.widget-action:focus:after {
    3187         -webkit-box-shadow:
    3188                 0 0 0 1px #5b9dd9,
    3189                 0 0 2px 1px rgba(30,140,190,.8);
    31903182        box-shadow:
    31913183                0 0 0 1px #5b9dd9,
    31923184                0 0 2px 1px rgba(30,140,190,.8);
    img { 
    32633255        top: 12px;
    32643256        right: 10px;
    32653257        z-index: 1;
     3258        width: 20px;
     3259        border-radius: 50%;
     3260        text-indent: -1px; /* account for the dashicon alignment */
    32663261}
    32673262
    32683263.accordion-section-title:focus {
    img { 
    32743269        border-color: #a0a5aa transparent;
    32753270}
    32763271
     3272.js .accordion-section-title:focus:after {
     3273        box-shadow:
     3274                        0 0 0 1px #5b9dd9,
     3275                        0 0 2px 1px rgba(30, 140, 190, .8);
     3276}
     3277
    32773278.cannot-expand .accordion-section-title {
    32783279        cursor: auto;
    32793280}
  • src/wp-admin/css/widgets.css

    diff --git src/wp-admin/css/widgets.css src/wp-admin/css/widgets.css
    index f0be076..ce7f236 100644
     
    9191        box-sizing: border-box;
    9292}
    9393
    94 .sidebar-name-arrow {
    95         position: absolute;
    96         top: 0;
    97         right: 0;
    98         bottom: 0;
     94.js .sidebar-name .handlediv {
     95        float: right;
     96    width: 48px;
     97    height: 48px;
     98    padding: 0;
     99}
     100
     101.js .sidebar-name .handlediv:focus {
     102        box-shadow: none;
     103        outline: none;
     104}
     105
     106.js .sidebar-name .handlediv:focus .sidebar-name-arrow:before {
     107        box-shadow:
     108                0 0 0 1px #5b9dd9,
     109                0 0 2px 1px rgba(30, 140, 190, .8);
     110}
     111
     112.js .sidebar-name .sidebar-name-arrow:before {
     113        margin-top: 4px;
     114        width: 20px;
     115        border-radius: 50%;
     116        text-indent: -1px; /* account for the dashicon alignment */
    99117}
    100118
    101119.js .sidebar-name {
    div#widgets-right .sidebar-name h3 { 
    249267        padding: 15px 7px;
    250268}
    251269
    252 div#widgets-right .sidebar-name .sidebar-name-arrow:before {
    253         top: 2px;
    254 }
    255 
    256270div#widgets-right .widget-top {
    257271        padding: 0;
    258272}
  • src/wp-admin/includes/template.php

    diff --git src/wp-admin/includes/template.php src/wp-admin/includes/template.php
    index cc590e3..ab90c8b 100644
    function do_accordion_sections( $screen, $context, $object ) { 
    11481148                                        }
    11491149                                        ?>
    11501150                                        <li class="control-section accordion-section <?php echo $hidden_class; ?> <?php echo $open_class; ?> <?php echo esc_attr( $box['id'] ); ?>" id="<?php echo esc_attr( $box['id'] ); ?>">
     1151                                                <button type="button" class="handlediv button-link" aria-expanded="true">
     1152                                                        <span class="screen-reader-text"><?php echo sprintf( __( 'Toggle panel: %s' ), $sidebar_name ); ?></span>
     1153                                                        <span class="sidebar-name-arrow" aria-hidden="true"></span>
     1154                                                </button>
    11511155                                                <h3 class="accordion-section-title hndle" tabindex="0">
    11521156                                                        <?php echo esc_html( $box['title'] ); ?>
    11531157                                                        <span class="screen-reader-text"><?php _e( 'Press return or enter to open this section' ); ?></span>
  • src/wp-admin/includes/widgets.php

    diff --git src/wp-admin/includes/widgets.php src/wp-admin/includes/widgets.php
    index 746a892..b54f83f 100644
    function wp_list_widget_controls( $sidebar, $sidebar_name = '' ) { 
    8080        if ( $sidebar_name ) {
    8181                ?>
    8282                <div class="sidebar-name">
    83                         <div class="sidebar-name-arrow"><br /></div>
     83                        <button type="button" class="handlediv button-link" aria-expanded="true">
     84                                <span class="screen-reader-text"><?php echo sprintf( __( 'Toggle panel: %s' ), $sidebar_name ); ?></span>
     85                                <span class="sidebar-name-arrow" aria-hidden="true"></span>
     86                        </button>
    8487                        <h2><?php echo esc_html( $sidebar_name ); ?> <span class="spinner"></span></h2>
    8588                </div>
    8689                <?php
    function wp_widget_control( $sidebar_args ) { 
    278281 */
    279282function wp_widgets_access_body_class($classes) {
    280283        return "$classes widgets_access ";
    281 }
    282  No newline at end of file
     284}