#36976: Admin: make action selection counter a live region
----------------------------+-----------------------------------------
     Reporter:  davitacols  |                     Type:  Uncategorized
       Status:  new         |                Component:  Uncategorized
      Version:  6.0         |                 Severity:  Normal
     Keywords:              |             Triage Stage:  Unreviewed
    Has patch:  0           |      Needs documentation:  0
  Needs tests:  0           |  Patch needs improvement:  0
Easy pickings:  0           |                    UI/UX:  0
----------------------------+-----------------------------------------
 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.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36976>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019cc7810027-1c5e32a9-be3e-4b6b-aa45-79fed980f6c7-000000%40eu-central-1.amazonses.com.

Reply via email to