mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 12:14:25 +00:00
Administration: Ensure collapse menu is usable with a keyboard
Currently, the "Collapse menu" item is not focusable and keyboard users can't collapse/expand the admin menu. This aims to fix it so that screen readers no longer announce it as a clickable but it remains unfocusable and thus unusable. So it's now a button. Quoting joedolson at WordCamp Chicago 2014: "If it's supposed to act like a button, it should be a button." Also includes a grunt:precommit run that picked up some postcss changes to src/wp-includes/css/customize-preview.css Fixes #29958. Props ajercia, ipm-frommen for an iterative patch, valendesigns for an iterative patch, GaryJ for feedback, joedolson for feedback, helen for feedback git-svn-id: https://develop.svn.wordpress.org/trunk@39141 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -77,8 +77,10 @@ function wp_default_scripts( &$scripts ) {
|
||||
|
||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), false, 1 );
|
||||
did_action( 'init' ) && $scripts->localize( 'common', 'commonL10n', array(
|
||||
'warnDelete' => __( "You are about to permanently delete these items.\n 'Cancel' to stop, 'OK' to delete." ),
|
||||
'dismiss' => __( 'Dismiss this notice.' ),
|
||||
'warnDelete' => __( "You are about to permanently delete these items.\n 'Cancel' to stop, 'OK' to delete." ),
|
||||
'dismiss' => __( 'Dismiss this notice.' ),
|
||||
'collapseMenu' => __( 'Collapse Main menu' ),
|
||||
'expandMenu' => __( 'Expand Main menu' ),
|
||||
) );
|
||||
|
||||
$scripts->add( 'wp-a11y', "/wp-includes/js/wp-a11y$suffix.js", array( 'jquery' ), false, 1 );
|
||||
|
||||
Reference in New Issue
Block a user