E046 - Herst/bootlint-ng GitHub Wiki

Note: Below is the original page from the Bootlint documentation, some of the info here might not apply to Bootlint-NG!


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>
⚠️ **GitHub.com Fallback** ⚠️