[a11y] Add aria-modal:

- Addresses https://github.com/mouse-reeve/bookwyrm/pull/680#issuecomment-790603940
This commit is contained in:
Fabien Basmaison 2021-03-04 20:14:11 +01:00
parent 8c26d8a514
commit 16ea657b5b

View file

@ -1,8 +1,11 @@
{# @todo Implement focus traps to prevent tabbing out of the modal. #}
<div
role="dialog"
class="modal hidden"
id="{{ controls_text }}-{{ controls_uid }}"
aria-labelledby="modal-card-title-{{ controls_text }}-{{ controls_uid }}"
aria-modal="true"
>
<div class="modal-background"></div>
<div class="modal-card">