Opened 3 hours ago
#36976 new Uncategorized
Admin: make action selection counter a live region
| Reported by: | David Ansa | Owned by: | |
|---|---|---|---|
| Component: | Uncategorized | Version: | 6.0 |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The admin changelist action counter updates dynamically when selecting or deselecting rows, but the updates are not explicitly announced as live content for assistive technologies.
This can make it harder for screen reader users to perceive selection count changes while performing bulk actions.
Proposed fix
Mark the counter as a polite live region and atomic:
aria-live="polite"
aria-atomic="true"
Patch summary
Updated django/contrib/admin/templates/admin/actions.html:
Added aria-live and aria-atomic attributes to .action-counter.
Added regression test in tests/admin_views/tests.py:
test_actions_counter_is_live_region
Why this is safe
Markup-only accessibility enhancement.
No behavior or JavaScript logic changes.
Existing UI behavior remains unchanged.