frontend: Change inaccurate aria-hidden assignments on buttons.

This either removes aria-hidden=true assignments from buttons with
text, or adds a span to only hide the 'x' symbol rather than the
button for closing buttons.
This commit is contained in:
Vaida Plankyte
2017-07-07 17:30:22 +02:00
committed by Tim Abbott
parent 1e7665effe
commit c9bc803118
14 changed files with 29 additions and 29 deletions

View File

@@ -119,7 +119,7 @@ $(function () {
// if the target is not the .overlay element, search up the node tree
// until it is found.
if ($target.is(".exit, .exit-sign, .overlay-content")) {
if ($target.is(".exit, .exit-sign, .overlay-content, .exit span")) {
$target = $target.closest("[data-overlay]");
} else if (!$target.is(".overlay")) {
// not a valid click target then.