From 1f4dab28fe532325bc3030811c9aaa44756ce91f Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sun, 1 Oct 2017 13:48:46 +0000 Subject: [PATCH] Accessibility: Improve the Theme Details modal accessibility. - sets the modal content to `role="document"` to make screen readers switch back to browse mode - standardizes the Themes screen and Customizer modals interaction - Themes screen modal: sets initial focus on the modal overlay instead of the primary button, avoiding to "skip" content for keyboard and screen reader users Fixes #42055. Built from https://develop.svn.wordpress.org/trunk@41658 git-svn-id: http://core.svn.wordpress.org/trunk@41492 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/theme.php | 2 +- wp-admin/js/theme.js | 10 +++++----- wp-admin/js/theme.min.js | 2 +- wp-admin/themes.php | 4 ++-- wp-includes/version.php | 2 +- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-admin/includes/theme.php b/wp-admin/includes/theme.php index 17d0b7bde0..6670d026f6 100644 --- a/wp-admin/includes/theme.php +++ b/wp-admin/includes/theme.php @@ -632,7 +632,7 @@ function customize_themes_print_templates() { ?>