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 Nov 16, 2015 · 1 revision

E046

.modal elements must have a tabindex attribute.

For accessibility reasons, all modals (i.e. elements with the .modal class) must have a tabindex attribute. Normally -1 is used as the value, resulting in tabindex="-1".

Wrong:

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

Right:

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