mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-17 05:36:34 +00:00
[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
|
<div
|
||||||
role="dialog"
|
role="dialog"
|
||||||
class="modal hidden"
|
class="modal hidden"
|
||||||
id="{{ controls_text }}-{{ controls_uid }}"
|
id="{{ controls_text }}-{{ controls_uid }}"
|
||||||
aria-labelledby="modal-card-title-{{ controls_text }}-{{ controls_uid }}"
|
aria-labelledby="modal-card-title-{{ controls_text }}-{{ controls_uid }}"
|
||||||
|
aria-modal="true"
|
||||||
>
|
>
|
||||||
<div class="modal-background"></div>
|
<div class="modal-background"></div>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
|
|
Loading…
Reference in a new issue