Difference between revisions of "Modal dialog with ARIA"

From Level Access Web Labs
Jump to navigation Jump to search
(Add hidden text on the button to indicate that it opens a modal dialog)
m
Line 78: Line 78:
 
       //  document.getElementById("pageContent").className = "body-dimmed";
 
       //  document.getElementById("pageContent").className = "body-dimmed";
 
         document.getElementById("pageContent").setAttribute("aria-hidden", "true");
 
         document.getElementById("pageContent").setAttribute("aria-hidden", "true");
       },1); // Was 2 sec timeout for debugging purposes
+
       },100); // Was 2 sec timeout for debugging purposes
 
     }
 
     }
  

Revision as of 02:20, 10 November 2017

Example

Note - not implemented:

  • Constraining keyboard focus within the modal dialog


...

...