From 8309ab055fce33527a2415b961785d2f94956b27 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Sun, 17 Apr 2016 16:57:54 +0000 Subject: [PATCH] Accessibility: change the close "X" in the Media "Attach to existing content" modal in a button. Props joedolson. Fixes #36554. git-svn-id: https://develop.svn.wordpress.org/trunk@37231 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/media.css | 16 +++++++++++++++- src/wp-admin/includes/template.php | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/css/media.css b/src/wp-admin/css/media.css index 71424c914c..de85e427e2 100644 --- a/src/wp-admin/css/media.css +++ b/src/wp-admin/css/media.css @@ -302,18 +302,32 @@ #find-posts-close { width: 36px; height: 36px; + border: none; + padding: 0; position: absolute; top: 0; right: 0; cursor: pointer; text-align: center; + background: none; color: #666; } -#find-posts-close:hover { +#find-posts-close:hover, +#find-posts-close:focus { color: #00a0d2; } +#find-posts-close:focus { + outline: none; + -webkit-box-shadow: + 0 0 0 1px #5b9dd9, + 0 0 2px 1px rgba(30, 140, 190, .8); + box-shadow: + 0 0 0 1px #5b9dd9, + 0 0 2px 1px rgba(30, 140, 190, .8); +} + #find-posts-close:before { font: normal 20px/36px dashicons; vertical-align: top; diff --git a/src/wp-admin/includes/template.php b/src/wp-admin/includes/template.php index 5138fd204c..4f635eda77 100644 --- a/src/wp-admin/includes/template.php +++ b/src/wp-admin/includes/template.php @@ -1486,7 +1486,7 @@ function find_posts_div($found_action = '') {