mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-04 14:47:02 +00:00
Customizer: Avoid duplicate IDs and remove role presentation from menu items reorder button. Follow-up to [33074].
props afercia. fixes #32725. git-svn-id: https://develop.svn.wordpress.org/trunk@33339 602fd350-edb4-49c9-b593-d223f7449a82
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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user