Make WordPress Core

Ticket #32715: 32715.patch

File 32715.patch, 5.9 KB (added by afercia, 11 years ago)
  • src/wp-admin/css/customize-nav-menus.css

     
    223223}
    224224
    225225/* Duplicates `.nav-menus-php .item-edit:before {}` in common.css:2220. */
    226 .wp-customizer .menu-item .item-edit:before {
     226.wp-customizer .menu-item .item-edit:before,
     227#available-menu-items .accordion-section-title button:after {
    227228        top: -1px;
    228229        right: 0;
    229230        content: '\f140';
     
    241242        text-decoration: none !important;
    242243}
    243244
    244 .wp-customizer .menu-item.menu-item-edit-active .item-edit:before {
     245.wp-customizer .menu-item.menu-item-edit-active .item-edit:before,
     246#available-menu-items .open .accordion-section-title button:after {
    245247        content: '\f142';
    246248}
    247249
     
    599601        background: #fff;
    600602}
    601603
     604#available-menu-items .accordion-section-title button {
     605        width: 30px;
     606        height: 35px;
     607        position: absolute;
     608        top: 5px;
     609        right: 5px;
     610        z-index: 1;
     611        cursor: pointer;
     612}
     613
     614#available-menu-items .accordion-section-title button:focus {
     615        -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
     616        box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
     617}
     618
    602619#available-menu-items .open .accordion-section-title {
    603620        background: #eee;
    604621}
    605622
    606 #available-menu-items .open .accordion-section-title:after {
    607         content: '\f142';
    608 }
    609 
    610623#available-menu-items .accordion-section-content {
    611624        overflow-y: auto;
    612625        max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */
     
    625638        margin: 0;
    626639}
    627640
    628 #available-menu-items .accordion-section-title button:focus:before {
    629         display: block;
    630         content: "";
    631         width: 28px;
    632         height: 32px;
    633         position: absolute;
    634         right: 5px;
    635         top: 5px;
    636         -webkit-box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
    637         box-shadow: 0 0 0 1px #5b9dd9, 0 0 2px 1px rgba(30, 140, 190, .8);
    638 }
    639 
    640641#available-menu-items .accordion-section-content {
    641642        padding: 1px 15px 15px 15px;
    642643        min-height: 120px;
     
    756757        box-sizing: border-box;
    757758}
    758759
     760#available-menu-items .accordion-section-title:after,
    759761#available-menu-items-search .accordion-section-title:after {
    760         display: none;
     762        content: none;
    761763}
    762764
    763765#available-menu-items-search .accordion-section-content:empty {
  • src/wp-includes/class-wp-customize-nav-menus.php

     
    563563                                <dl class="menu-item-bar">
    564564                                        <dt class="menu-item-handle">
    565565                                                <span class="item-type">{{ data.type_label }}</span>
    566                                                 <span class="item-title">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span>
    567                                                 <button type="button" class="not-a-button item-add"><span class="screen-reader-text"><?php _e( 'Add Menu Item' ) ?></span></button>
     566                                                <span class="item-title" id="menu-item-tpl-{{ data.id }}-title">{{ data.title || wp.customize.Menus.data.l10n.untitled }}</span>
     567                                                <button type="button" class="not-a-button item-add" aria-describedby="menu-item-tpl-{{ data.id }}-title"><span class="screen-reader-text"><?php _e( 'Add Menu Item' ) ?></span></button>
    568568                                        </dt>
    569569                                </dl>
    570570                        </div>
     
    625625                                <div class="accordion-section-content" data-type="search"></div>
    626626                        </div>
    627627                        <div id="new-custom-menu-item" class="accordion-section">
    628                                 <h4 class="accordion-section-title"><?php _e( 'Links' ); ?><button type="button" class="not-a-button"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>
     628                                <h4 class="accordion-section-title"><span id="section-title-links"><?php _e( 'Links' ); ?></span><button type="button" class="not-a-button" aria-describedby="section-title-links"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>
    629629                                <div class="accordion-section-content">
    630630                                        <input type="hidden" value="custom" id="custom-menu-item-type" name="menu-item[-1][menu-item-type]" />
    631631                                        <p id="menu-item-url-wrap">
     
    657657                                foreach ( $post_types as $type ) :
    658658                                        ?>
    659659                                        <div id="available-menu-items-<?php echo esc_attr( $type->name ); ?>" class="accordion-section">
    660                                                 <h4 class="accordion-section-title"><?php echo esc_html( $type->label ); ?> <span class="spinner"></span> <button type="button" class="not-a-button"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>
     660                                                <h4 class="accordion-section-title"><span id="section-title-<?php echo esc_attr( $type->label ); ?>"><?php echo esc_html( $type->label ); ?></span> <span class="spinner"></span> <button type="button" class="not-a-button" aria-describedby="section-title-<?php echo esc_attr( $type->label ); ?>"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>
    661661                                                <div class="accordion-section-content" data-type="<?php echo esc_attr( $type->name ); ?>" data-obj_type="post_type"></div>
    662662                                        </div>
    663663                                <?php
     
    669669                                foreach ( $taxonomies as $tax ) :
    670670                                        ?>
    671671                                        <div id="available-menu-items-<?php echo esc_attr( $tax->name ); ?>" class="accordion-section">
    672                                                 <h4 class="accordion-section-title"><?php echo esc_html( $tax->label ); ?> <span class="spinner"></span> <button type="button" class="not-a-button"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>
     672                                                <h4 class="accordion-section-title"><span id="section-title-<?php echo esc_attr( $tax->label ); ?>"><?php echo esc_html( $tax->label ); ?></span> <span class="spinner"></span> <button type="button" class="not-a-button" aria-describedby="section-title-<?php echo esc_attr( $tax->label ); ?>"><span class="screen-reader-text"><?php _e( 'Toggle' ); ?></span></button></h4>
    673673                                                <div class="accordion-section-content" data-type="<?php echo esc_attr( $tax->name ); ?>" data-obj_type="taxonomy"></div>
    674674                                        </div>
    675675                                <?php