Skip to content

Commit

Permalink
Fix: Don’t hide background content from screen-readers if keepfocus
Browse files Browse the repository at this point in the history
… is false
  • Loading branch information
vladimirsiljkovic committed Dec 11, 2018
1 parent 6b1c784 commit 7cda5bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jquery.popupoverlay.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7cda5bd

Please sign in to comment.