...
@@ -222,12 +222,8 @@
Modal title
Make modals accessible
-
- Be sure to add role="dialog"
to your primary modal div. In the example above, div#myModal
.
- Also, the aria-labelledby
attribute references your modal title. In this example, h4#myModalLabel
.
- Finally, aria-hidden="true"
tells assistive technologies to skip DOM elements.
- Additionally, you may give a description of your modal dialog. Use the aria-describedby
attribute in the modal's primary <div>
to point to this description (this is not shown in the above example).
-
+
Be sure to add role="dialog"
to .modal
, aria-labelledby="myModalLabel"
attribute to reference the modal title, and aria-hidden="true"
to tell assistive technologies to skip the modal's DOM elements.
+
Additionally, you may give a description of your modal dialog with aria-describedby
on .modal
.
Usage