From d5373c004cb3868d83ee1830eff76c3034500929 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 23 May 2016 10:29:44 +0000 Subject: [PATCH] Accessibility: the Thickbox "Close" control should always be a button. Fix the last case where the "Close" control was still a link. All the other ones were already changed in buttons. Fixes #36267. git-svn-id: https://develop.svn.wordpress.org/trunk@37531 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/js/thickbox/thickbox.css | 9 +++++++++ src/wp-includes/js/thickbox/thickbox.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/js/thickbox/thickbox.css b/src/wp-includes/js/thickbox/thickbox.css index 6bfac61ee4..3374f68569 100644 --- a/src/wp-includes/js/thickbox/thickbox.css +++ b/src/wp-includes/js/thickbox/thickbox.css @@ -145,3 +145,12 @@ #TB_closeWindowButton:focus .tb-close-icon { color: #00a0d2; } + +#TB_closeWindowButton:focus .tb-close-icon { + -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); +} diff --git a/src/wp-includes/js/thickbox/thickbox.js b/src/wp-includes/js/thickbox/thickbox.js index 164f72e616..391fd4186e 100644 --- a/src/wp-includes/js/thickbox/thickbox.js +++ b/src/wp-includes/js/thickbox/thickbox.js @@ -212,7 +212,7 @@ function tb_show(caption, url, imageGroup) {//function called when the user clic }else{// not an iframe, ajax if(jQuery("#TB_window").css("visibility") != "visible"){ if(params['modal'] != "true"){//ajax no modal - jQuery("#TB_window").append("
"+caption+"
"); + jQuery("#TB_window").append("
"+caption+"
"); }else{//ajax modal jQuery("#TB_overlay").unbind(); jQuery("#TB_window").append("
");