dimsemenov/Magnific-Popup — pull request #425 by peterkuma (2014-04-03 16:48:06+00:00)
Title: ARIA: Hide page content when popup is on (#23)

When popup opens, tab navigation is confined to the dialog. However, all
page content is still accessible to screen readers, which do not know
that it has been occluded by an overlay. Without explicit aria-hidden
attributes, screen readers will navigate and read all of the page
content while the popup is on.

This fix adds aria-hidden attributes to all body child elements before
the popup is shown, and removes them when the popup is closed. Original
values (if present) are preserved in data-aria-hidden attributes.

Tested with ChromeVox on Chromium 32. Attributes are added and removed
correctly in Firefox 28 and IE9, but not tested with a screen reader.