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 = '') {