From b9a360207090ca093358aa7a706bbf6950c0b841 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 14 Mar 2016 20:55:26 +0000 Subject: [PATCH] wpLink: fix accessibility issues: - Add role=dialog and an aria-labelledby attribute to the modal container. - Change the modal title to h1. - Remove one ` ` that gets read out as `blank` by screen readers. - Replace the Cancel link with a button. - Clean up unused CSS. Props afercia. Fixes #30468. Built from https://develop.svn.wordpress.org/trunk@36991 git-svn-id: http://core.svn.wordpress.org/trunk@36958 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-editor.php | 12 ++--- wp-includes/css/editor-rtl.css | 78 ++++-------------------------- wp-includes/css/editor-rtl.min.css | 2 +- wp-includes/css/editor.css | 78 ++++-------------------------- wp-includes/css/editor.min.css | 2 +- wp-includes/js/wplink.js | 2 +- wp-includes/js/wplink.min.js | 2 +- wp-includes/version.php | 2 +- 8 files changed, 30 insertions(+), 148 deletions(-) diff --git a/wp-includes/class-wp-editor.php b/wp-includes/class-wp-editor.php index cfa62491d7..237ce507c5 100644 --- a/wp-includes/class-wp-editor.php +++ b/wp-includes/class-wp-editor.php @@ -1403,13 +1403,11 @@ final class _WP_Editors { // display: none is required here, see #WP27605 ?> -