set aria-hidden=true when closing modal dialog

because aria-hidden=false set by g/24502 overrides display: none
as far as JAWS is concerned

test plan:
 - go to the modules page
 - click the "+ Module" button, then cancel out
 - ensure JAWS doesn't still show the "Add Module" and "Cancel"
   buttons in the now-closed modal

fixes CNVS-26508

Change-Id: I6c103ee242922737d676b5e570dce1f222e58fec
Reviewed-on: https://gerrit.instructure.com/74896
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
This commit is contained in:
Jeremy Stanley 2016-03-18 13:57:50 -06:00
parent aa5216469d
commit b7deacaef1
1 changed files with 1 additions and 0 deletions

View File

@ -230,6 +230,7 @@ $.widget("ui.dialog", {
}
this._isOpen = false;
this.uiDialog.attr('aria-hidden', true);
if ( this.overlay ) {
this.overlay.destroy();