#34919: Missing scope attribute in admin doc table headers
-------------------------------------+-------------------------------------
               Reporter:  Louis-     |          Owner:  Louis-Cloud
  Cloud                              |
                   Type:  Bug        |         Status:  assigned
              Component:             |        Version:  4.2
  contrib.admindocs                  |       Keywords:  table, scope,
               Severity:  Normal     |  screenreader
           Triage Stage:             |      Has patch:  0
  Unreviewed                         |
    Needs documentation:  0          |    Needs tests:  0
Patch needs improvement:  0          |  Easy pickings:  0
                  UI/UX:  1          |
-------------------------------------+-------------------------------------
 There are a number of tables throughout [https://static-django-
 
demo.netlify.app/django_admin_tests/v5.0/english/admin/docs/models/contenttypes.contenttype/
 Django's admin docs] that are lacking the `scope` attribute. Having this
 attribute in the table headers makes table navigation easier for a screen
 reader user.

 === Relevant Files:
 * django/contrib/admindocs/templates/admin_doc/model_detail.html
 * django/contrib/admindocs/templates/admin_doc/model_index.html

 === Acceptance Criteria
 * All table column header (th) needs to have a `scope = "col"` attribute.
 * All table row headers (first column th) should have a `scope = "row"`
 attribute

 === For more information
 * [https://www.w3.org/WAI/tutorials/tables/two-headers/#table-with-header-
 cells-in-the-top-row-and-first-column W3 - Tables with Two Headers]:
 * [https://developer.mozilla.org/en-
 US/docs/Learn/HTML/Tables/Advanced#using_column_and_row_headers MDN Web
 Docs - Using column and row headers]

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34919>
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 on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018b4de17a97-116b9822-7985-4b67-bcbc-17764e892354-000000%40eu-central-1.amazonses.com.

Reply via email to