Customizer: Improve accessibility of Add Menu Items button and its panel.

props afercia, ocean90.
fixes #32682.
Built from https://develop.svn.wordpress.org/trunk@32848


git-svn-id: http://core.svn.wordpress.org/trunk@32819 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dominik Schilling
2015-06-18 20:52:24 +00:00
parent f39edce68d
commit f5fa907f77
4 changed files with 5 additions and 3 deletions

View File

@@ -1800,8 +1800,10 @@
}
if ( ! $( 'body' ).hasClass( 'adding-menu-items' ) ) {
$( this ).attr( 'aria-expanded', 'true' );
api.Menus.availableMenuItemsPanel.open( self );
} else {
$( this ).attr( 'aria-expanded', 'false' );
api.Menus.availableMenuItemsPanel.close();
event.stopPropagation();
}

File diff suppressed because one or more lines are too long