WordPress.org

Make WordPress Core

Changeset 33077


Ignore:
Timestamp:
07/03/2015 10:20:04 PM (4 years ago)
Author:
ocean90
Message:

Customizer: Fix tabindex of reorder buttons for menu items with depth 1 and 10.

props celloexpressions.
fixes #32767.

Location:
trunk/src/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/css/customize-nav-menus.css

    r33074 r33077  
    173173.move-down-disabled .menus-move-down,
    174174.move-right-disabled .menus-move-right,
    175 .move-left-disabled .menus-move-left,
    176 .menu-item-depth-0 .menus-move-left,
    177 .menu-item-depth-10 .menus-move-right {
     175.move-left-disabled .menus-move-left {
    178176    color: #d5d5d5 !important;
    179177    background-color: #fff !important;
  • trunk/src/wp-admin/js/customize-nav-menus.js

    r33074 r33077  
    20272027                    _( currentMenuItemControls ).each(function( menuItemControl ) {
    20282028                        menuItemControl.container.removeClass( 'move-up-disabled move-down-disabled move-left-disabled move-right-disabled' );
     2029                        if ( 0 === context.currentDepth ) {
     2030                            menuItemControl.container.addClass( 'move-left-disabled' );
     2031                        } else if ( 10 === context.currentDepth ) {
     2032                            menuItemControl.container.addClass( 'move-right-disabled' );
     2033                        }
    20292034                    });
    20302035
Note: See TracChangeset for help on using the changeset viewer.