From 3578f899003588fc85e1c382f4d6f1c68a3d1d2c Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Thu, 17 Jan 2019 11:55:51 +0000 Subject: [PATCH] Accessibility: Improve the way Internet Explorer 11 and JAWS announce fieldset legends. When Internet Explorer encounters a non interactive element with a `tabindex` attribute, it adds the element to the accessibility tree with a `role=group` and an accessible name computed from the element. This prevents JAWS from announcing any fieldset legend within the element. - removes `tabindex="0"` from the content and the toolbar containers: these tabindex attributes are no longer needed - removes `aria-label="Main content"` from the content container: not needed - keeps the media modal focus fallback introduced in [38142] by making the `#wpbody-content` element focusable only when needed Props stevefaulkner, aardrian. Fixes #43154. Built from https://develop.svn.wordpress.org/trunk@44639 git-svn-id: http://core.svn.wordpress.org/trunk@44470 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/admin-header.php | 2 +- wp-includes/class-wp-admin-bar.php | 2 +- wp-includes/js/media-views.js | 4 +++- wp-includes/js/media-views.min.js | 2 +- wp-includes/version.php | 2 +- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php index f00fab9bce..5f0fb75916 100644 --- a/wp-admin/admin-header.php +++ b/wp-admin/admin-header.php @@ -248,7 +248,7 @@ $current_screen->set_parentage( $parent_file ); ?> -
+
render_screen_meta(); diff --git a/wp-includes/class-wp-admin-bar.php b/wp-includes/class-wp-admin-bar.php index 72b7ce4111..6fb5486bf4 100644 --- a/wp-includes/class-wp-admin-bar.php +++ b/wp-includes/class-wp-admin-bar.php @@ -438,7 +438,7 @@ class WP_Admin_Bar { -