Ticket #32715: 32715.patch
| File 32715.patch, 5.9 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/customize-nav-menus.css
223 223 } 224 224 225 225 /* 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 { 227 228 top: -1px; 228 229 right: 0; 229 230 content: '\f140'; … … 241 242 text-decoration: none !important; 242 243 } 243 244 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 { 245 247 content: '\f142'; 246 248 } 247 249 … … 599 601 background: #fff; 600 602 } 601 603 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 602 619 #available-menu-items .open .accordion-section-title { 603 620 background: #eee; 604 621 } 605 622 606 #available-menu-items .open .accordion-section-title:after {607 content: '\f142';608 }609 610 623 #available-menu-items .accordion-section-content { 611 624 overflow-y: auto; 612 625 max-height: 200px; /* This gets set in JS to fit the screen size, and based on # of sections. */ … … 625 638 margin: 0; 626 639 } 627 640 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 640 641 #available-menu-items .accordion-section-content { 641 642 padding: 1px 15px 15px 15px; 642 643 min-height: 120px; … … 756 757 box-sizing: border-box; 757 758 } 758 759 760 #available-menu-items .accordion-section-title:after, 759 761 #available-menu-items-search .accordion-section-title:after { 760 display: none;762 content: none; 761 763 } 762 764 763 765 #available-menu-items-search .accordion-section-content:empty { -
src/wp-includes/class-wp-customize-nav-menus.php
563 563 <dl class="menu-item-bar"> 564 564 <dt class="menu-item-handle"> 565 565 <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> 568 568 </dt> 569 569 </dl> 570 570 </div> … … 625 625 <div class="accordion-section-content" data-type="search"></div> 626 626 </div> 627 627 <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> 629 629 <div class="accordion-section-content"> 630 630 <input type="hidden" value="custom" id="custom-menu-item-type" name="menu-item[-1][menu-item-type]" /> 631 631 <p id="menu-item-url-wrap"> … … 657 657 foreach ( $post_types as $type ) : 658 658 ?> 659 659 <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> 661 661 <div class="accordion-section-content" data-type="<?php echo esc_attr( $type->name ); ?>" data-obj_type="post_type"></div> 662 662 </div> 663 663 <?php … … 669 669 foreach ( $taxonomies as $tax ) : 670 670 ?> 671 671 <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> 673 673 <div class="accordion-section-content" data-type="<?php echo esc_attr( $tax->name ); ?>" data-obj_type="taxonomy"></div> 674 674 </div> 675 675 <?php