Make WordPress Core


Ignore:
Timestamp:
07/28/2026 08:05:34 PM (3 months ago)
Author:
joedolson
Message:

Accessibility: In modal collections use alt plus arrow for navigation.

The theme browsers and the media attachment browser supported left and right arrow keys to trigger navigation. These interfered with screen reader reading commands, which also use the left and right arrow keys, forcing navigation instead of allowing the screen reader user to read additional content.

Require that the alt key is also pressed to trigger navigation. Also add debounced screen reader announcements to notify users of the new modal context.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/11560

Props joedolson, sukhendu2002, afercia.
Fixes #63760.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-manager.php

    r62763 r62878  
    49604960                                'announceThemeCount'   => __( 'Displaying %d themes' ),
    49614961                                /* translators: %s: Theme name. */
    4962                                 'announceThemeDetails' => __( 'Showing details for theme: %s' ),
     4962                                'announceThemeDetails' => __( 'Theme details: %s' ),
    49634963                        ),
    49644964                );
Note: See TracChangeset for help on using the changeset viewer.