Customizer: Add widget title to Move/Up/Down controls to provide context for screen readers when reordering or moving widgets.
fixes #28889. git-svn-id: https://develop.svn.wordpress.org/trunk@29238 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7a01c6af7b
commit
a740868552
@ -623,7 +623,9 @@
|
||||
* Handle clicks for up/down/move on the reorder nav
|
||||
*/
|
||||
$reorderNav = this.container.find( '.widget-reorder-nav' );
|
||||
$reorderNav.find( '.move-widget, .move-widget-down, .move-widget-up' ).on( 'click keypress', function( event ) {
|
||||
$reorderNav.find( '.move-widget, .move-widget-down, .move-widget-up' ).each( function() {
|
||||
$( this ).prepend( self.container.find( '.widget-title' ).text() + ': ' );
|
||||
} ).on( 'click keypress', function( event ) {
|
||||
if ( event.type === 'keypress' && ( event.which !== 13 && event.which !== 32 ) ) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user