diff --git a/docs/contextual.html b/docs/contextual.html index f39441e..6da3027 100644 --- a/docs/contextual.html +++ b/docs/contextual.html @@ -271,7 +271,18 @@
<input id="modal-toggle" type="checkbox"/> +<label for="modal-toggle">Show modal</label> +<div class="modal" role="dialog" aria-labelledby="dialogTitle"> + <div class="card"> + <label for="modal-toggle" class="close"></label> + <h3 class="section" id="dialogTitle">Bad Modal</h3> + </div> +</div>+
Do: You can use the role="dialog"
to add accessibility to your modal dialogs. Remember to properly label it and manage keyboard focus, as required.
<input id="modal-toggle" type="checkbox"/> <label for="modal-toggle">Show modal</label> <div class="modal"> diff --git a/docs/quick_reference.html b/docs/quick_reference.html index 2eb9296..530ff5b 100644 --- a/docs/quick_reference.html +++ b/docs/quick_reference.html @@ -1046,6 +1046,7 @@
.card
inside the .modal
to display contents<label>
or some Javascript to allow users to close the dialogrole="dialog"
to add accessibility to modal dialogs