Skip to content

Commit

Permalink
add dialog role since no browsers really expose it
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton committed Oct 13, 2016
1 parent c029d31 commit 31eb6ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion comparisons/components/modal/html.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Click Me
</a>

<dialog class="modal" id="modalDialog1" tabindex="-1">
<dialog class="modal" id="modalDialog1"
tabindex="-1" role="dialog">
<p>Hello Beautiful!</p>
</dialog>
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ <h4>HTML</h4>
Click Me
&lt;/a&gt;

&lt;dialog class=&quot;modal&quot; id=&quot;modalDialog1&quot; tabindex=&quot;-1&quot;&gt;
&lt;dialog class=&quot;modal&quot; id=&quot;modalDialog1&quot;
tabindex=&quot;-1&quot; role=&quot;dialog&quot;&gt;
&lt;p&gt;Hello World!&lt;/p&gt;
&lt;/dialog&gt;</code></pre>
</div>
Expand Down

0 comments on commit 31eb6ca

Please sign in to comment.