MDL-86512 core: Assign status role for the number of selected items

Add a status role for the container containing the number of selected
items for bulk actions so that screen readers will announce this
number when an item gets selected for bulk action.
This commit is contained in:
Jun Pataleta
2025-09-16 22:39:00 +08:00
parent 93aa033801
commit 09999184d4
2 changed files with 2 additions and 2 deletions
@@ -79,7 +79,7 @@
{{#pix}} e/cancel, core {{/pix}}
</button>
</div>
<div class="bulkcount" data-for="bulkcount">
<div class="bulkcount" data-for="bulkcount" role="status">
{{#str}} bulkselection, core_courseformat, 0 {{/str}}
</div>
</div>
@@ -86,7 +86,7 @@
{{#pix}} e/cancel, core {{/pix}}
</button>
</div>
<div data-for="bulkcount">
<div data-for="bulkcount" role="status">
{{#str}} bulkselection, core, {{bulkselectioncount}} {{/str}}
</div>
</div>