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 29, 2016 · 1 revision

E048

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

For accessibility reasons, all modals (i.e. elements with the .modal class) must have a role attribute with a value of dialog.

Wrong:

<div class="modal" tabindex="-1">
  ...
</div>

Right:

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