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:38:36 +08:00
parent 0ec57fc3f2
commit e10c31ce2b
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>