Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
Chris Rebert edited this page Jan 30, 2016 · 1 revision

E049

.modal-dialog must have a role="document" attribute.

For accessibility reasons, all elements with the .modal-dialog class must have a role attribute with a value of document.

Wrong:

<div class="modal-dialog">
  ...
</div>

Right:

<div class="modal-dialog" role="document">
  ...
</div>
Clone this wiki locally