From 15ce1ec9393fb52fd61c38edb80dd6aa97dc2355 Mon Sep 17 00:00:00 2001 From: Andrea Fercia Date: Mon, 23 May 2016 10:30:29 +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. Built from https://develop.svn.wordpress.org/trunk@37531 git-svn-id: http://core.svn.wordpress.org/trunk@37499 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/js/thickbox/thickbox.css | 9 +++++++++ wp-includes/js/thickbox/thickbox.js | 2 +- wp-includes/version.php | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/wp-includes/js/thickbox/thickbox.css b/wp-includes/js/thickbox/thickbox.css index 6bfac61ee4..3374f68569 100644 --- a/wp-includes/js/thickbox/thickbox.css +++ b/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/wp-includes/js/thickbox/thickbox.js b/wp-includes/js/thickbox/thickbox.js index 164f72e616..391fd4186e 100644 --- a/wp-includes/js/thickbox/thickbox.js +++ b/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("
"); diff --git a/wp-includes/version.php b/wp-includes/version.php index 6ff80d420f..1b24dcafd2 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37530'; +$wp_version = '4.6-alpha-37531'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.