From 7cda5bdfdfb94f669d7f4794446ba9e7a191a4b7 Mon Sep 17 00:00:00 2001 From: Vladimir Siljkovic Date: Tue, 11 Dec 2018 20:28:08 +0100 Subject: [PATCH] =?UTF-8?q?Fix:=20Don=E2=80=99t=20hide=20background=20cont?= =?UTF-8?q?ent=20from=20screen-readers=20if=20`keepfocus`=20is=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jquery.popupoverlay.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/jquery.popupoverlay.js b/jquery.popupoverlay.js index 762b435..da3fca5 100644 --- a/jquery.popupoverlay.js +++ b/jquery.popupoverlay.js @@ -383,7 +383,9 @@ }, options.focusdelay); // Hide main content from screen readers - $(options.pagecontainer).attr('aria-hidden', true); + if (options.keepfocus) { + $(options.pagecontainer).attr('aria-hidden', true); + } // Reveal popup content to screen readers $el.attr('aria-hidden', false);