From 7a414342dfc58b9396ebffe35038b9024efdb931 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sun, 1 Oct 2017 13:47:29 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@41658 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/theme.php | 2 +- src/wp-admin/js/theme.js | 10 +++++----- src/wp-admin/themes.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/wp-admin/includes/theme.php b/src/wp-admin/includes/theme.php index 17d0b7bde0..6670d026f6 100644 --- a/src/wp-admin/includes/theme.php +++ b/src/wp-admin/includes/theme.php @@ -632,7 +632,7 @@ function customize_themes_print_templates() { ?>