WordPress.org

Make WordPress Core

Changeset 45069


Ignore:
Timestamp:
03/29/2019 11:26:33 AM (17 months ago)
Author:
afercia
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/site-health.js

    r45055 r45069  
    3131            $( this ).attr( 'aria-expanded', 'true' );
    3232            $( '#' + $( this ).attr( 'aria-controls' ) ).attr( 'hidden', false );
    33         }
    34     } );
    35 
    36     $( '.health-check-accordion' ).on( 'keyup', '.health-check-accordion-trigger', function( e ) {
    37         if ( '38' === e.keyCode.toString() ) {
    38             $( '.health-check-accordion-trigger', $( this ).closest( 'dt' ).prevAll( 'dt' ) ).focus();
    39         } else if ( '40' === e.keyCode.toString() ) {
    40             $( '.health-check-accordion-trigger', $( this ).closest( 'dt' ).nextAll( 'dt' ) ).focus();
    4133        }
    4234    } );
Note: See TracChangeset for help on using the changeset viewer.