mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Customizer: Fix tabindex of reorder buttons for menu items with depth 1 and 10.
props celloexpressions. fixes #32767. git-svn-id: https://develop.svn.wordpress.org/trunk@33077 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
056fcf6162
commit
45e6228070
@ -172,9 +172,7 @@
|
||||
.move-up-disabled .menus-move-up,
|
||||
.move-down-disabled .menus-move-down,
|
||||
.move-right-disabled .menus-move-right,
|
||||
.move-left-disabled .menus-move-left,
|
||||
.menu-item-depth-0 .menus-move-left,
|
||||
.menu-item-depth-10 .menus-move-right {
|
||||
.move-left-disabled .menus-move-left {
|
||||
color: #d5d5d5 !important;
|
||||
background-color: #fff !important;
|
||||
cursor: default;
|
||||
|
||||
@ -2026,6 +2026,11 @@
|
||||
if ( currentMenuItemControls.length ) {
|
||||
_( currentMenuItemControls ).each(function( menuItemControl ) {
|
||||
menuItemControl.container.removeClass( 'move-up-disabled move-down-disabled move-left-disabled move-right-disabled' );
|
||||
if ( 0 === context.currentDepth ) {
|
||||
menuItemControl.container.addClass( 'move-left-disabled' );
|
||||
} else if ( 10 === context.currentDepth ) {
|
||||
menuItemControl.container.addClass( 'move-right-disabled' );
|
||||
}
|
||||
});
|
||||
|
||||
currentMenuItemControls[0].container
|
||||
|
||||
Loading…
Reference in New Issue
Block a user