Difference between revisions of "Modal dialog with ARIA"

From Level Access Web Labs
Jump to navigation Jump to search
(Undo revision 3242 by Owen Edwards (talk))
(Add hidden text on the button to indicate that it opens a modal dialog)
Line 117: Line 117:
  
 
     <!-- A button to get more info about trees -->
 
     <!-- A button to get more info about trees -->
     <button id="openDialog1" onclick="openDialog1();">More info<span class="sr-only"> about trees </span></button>
+
     <button id="openDialog1" onclick="openDialog1();">More info<span class="sr-only"> about trees - opens modal dialog</span></button>
  
 
     <select id="favoriteTree">
 
     <select id="favoriteTree">

Revision as of 02:17, 10 November 2017

Example

Note - not implemented:

  • Constraining keyboard focus within the modal dialog


...

...