Customizer: Avoid duplicate IDs and remove role presentation from menu items reorder button. Follow-up to [33074].
props afercia. fixes #32725. Built from https://develop.svn.wordpress.org/trunk@33339 git-svn-id: http://core.svn.wordpress.org/trunk@33311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2013,11 +2013,11 @@
|
||||
this.$sectionContent.sortable( this.isReordering ? 'disable' : 'enable' );
|
||||
if ( this.isReordering ) {
|
||||
addNewItemBtn.attr( 'tabindex', '-1' );
|
||||
reorderBtn.find( '.reorder-done' ).focus();
|
||||
reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOff );
|
||||
wp.a11y.speak( api.Menus.data.l10n.reorderModeOn );
|
||||
} else {
|
||||
addNewItemBtn.removeAttr( 'tabindex' );
|
||||
reorderBtn.find( '.reorder' ).focus();
|
||||
reorderBtn.attr( 'aria-label', api.Menus.data.l10n.reorderLabelOn );
|
||||
wp.a11y.speak( api.Menus.data.l10n.reorderModeOff );
|
||||
}
|
||||
|
||||
|
||||
4
wp-admin/js/customize-nav-menus.min.js
vendored
4
wp-admin/js/customize-nav-menus.min.js
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user