From 30d63dde4b887efd80e0c98f7581a8fb891f44fd Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Mon, 14 Mar 2016 20:54:58 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@36991 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-editor.php | 12 ++--- src/wp-includes/css/editor.css | 78 ++++------------------------- src/wp-includes/js/wplink.js | 2 +- 3 files changed, 16 insertions(+), 76 deletions(-) diff --git a/src/wp-includes/class-wp-editor.php b/src/wp-includes/class-wp-editor.php index cfa62491d7..237ce507c5 100644 --- a/src/wp-includes/class-wp-editor.php +++ b/src/wp-includes/class-wp-editor.php @@ -1403,13 +1403,11 @@ final class _WP_Editors { // display: none is required here, see #WP27605 ?> -