Accessibility: Remove arrows navigation from the Site Health accordions.
Arrows navigation on accordions is an optional keyboard interaction feature mentioned in the WAI-ARIA Authoring Practices. While it can add some value in some specific cases, it's not so discoverable and it's unlikely users, including assistive technologies users, would really "expect" this kind of interaction. See #46573. Fixes #46682. git-svn-id: https://develop.svn.wordpress.org/trunk@45069 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
594e1802bd
commit
f5a66cacba
@ -33,14 +33,6 @@ jQuery( document ).ready( function( $ ) {
|
||||
}
|
||||
} );
|
||||
|
||||
$( '.health-check-accordion' ).on( 'keyup', '.health-check-accordion-trigger', function( e ) {
|
||||
if ( '38' === e.keyCode.toString() ) {
|
||||
$( '.health-check-accordion-trigger', $( this ).closest( 'dt' ).prevAll( 'dt' ) ).focus();
|
||||
} else if ( '40' === e.keyCode.toString() ) {
|
||||
$( '.health-check-accordion-trigger', $( this ).closest( 'dt' ).nextAll( 'dt' ) ).focus();
|
||||
}
|
||||
} );
|
||||
|
||||
// Site Health test handling.
|
||||
|
||||
$( '.site-health-view-passed' ).on( 'click', function() {
|
||||
|
Loading…
Reference in New Issue
Block a user