From f5a66cacbafbb63f42281332f705abd1ae35d43d Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Fri, 29 Mar 2019 11:26:33 +0000 Subject: [PATCH] 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 --- src/js/_enqueues/admin/site-health.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/js/_enqueues/admin/site-health.js b/src/js/_enqueues/admin/site-health.js index 243124fc4d..8a06e9e9a7 100644 --- a/src/js/_enqueues/admin/site-health.js +++ b/src/js/_enqueues/admin/site-health.js @@ -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() {