forked from mirrors/bookwyrm
[a11y] Add aria-modal
:
- Addresses https://github.com/mouse-reeve/bookwyrm/pull/680#issuecomment-790603940
This commit is contained in:
parent
8c26d8a514
commit
16ea657b5b
1 changed files with 3 additions and 0 deletions
|
@ -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">
|
||||
|
|
Loading…
Reference in a new issue