Difference between revisions of "Modal dialog with ARIA"

From Level Access Web Labs
Jump to navigation Jump to search
Line 39: Line 39:
 
         document.getElementById("pageContent").setAttribute("aria-hidden", "true");
 
         document.getElementById("pageContent").setAttribute("aria-hidden", "true");
 
         document.getElementById("pageContent").className = "body-dimmed";
 
         document.getElementById("pageContent").className = "body-dimmed";
       },2000); // 2 sec timeout just for debugging purposes
+
       },1); // Was 2 sec timeout just for debugging purposes
 
     }
 
     }
  
Line 49: Line 49:
 
         document.getElementById("openDialog1").focus();
 
         document.getElementById("openDialog1").focus();
 
         document.getElementById("dialog1").className = "dialog-hide";
 
         document.getElementById("dialog1").className = "dialog-hide";
       },2000); // 2 sec timeout just for debugging purposes
+
       },1); // Was 2 sec timeout just for debugging purposes
 
     }
 
     }
 
   </script>
 
   </script>

Revision as of 19:02, 17 November 2016

Example

...
...