Difference between revisions of "Dialog Element"

From Level Access Web Labs
Jump to navigation Jump to search
Line 2: Line 2:
 
  <div>
 
  <div>
 
  <button onclick="document.getElementById('dialog1').setAttribute('open','open');">Open dialog</button>
 
  <button onclick="document.getElementById('dialog1').setAttribute('open','open');">Open dialog</button>
  <dialog aria-labelledby="d1" id="dialog1">
+
  <dialog aria-modal="true" aria-labelledby="d1" id="dialog1">
 
   <div id="d1" style="text-align:center;">Do you need more time?</div>
 
   <div id="d1" style="text-align:center;">Do you need more time?</div>
 
   <div style="text-align:center;">
 
   <div style="text-align:center;">

Revision as of 16:20, 9 February 2022

Do you need more time?

Test results for Dialog Element

None of the screen reders announce the role of dialog for the HTML5 Dialog element.