#34919: Missing scope attribute in admin doc table headers
-------------------------------------+-------------------------------------
     Reporter:  Louis-Cloud          |                    Owner:  Louis-
                                     |  Cloud
         Type:  Bug                  |                   Status:  assigned
    Component:  contrib.admindocs    |                  Version:  4.2
     Severity:  Normal               |               Resolution:
     Keywords:  table, scope,        |             Triage Stage:
  screenreader                       |  Unreviewed
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  1
-------------------------------------+-------------------------------------
Description changed by Louis-Cloud:

Old description:

> 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.
>
> === 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
>
> === Relevant Files:
> * django/contrib/admindocs/templates/admin_doc/model_detail.html
> * django/contrib/admindocs/templates/admin_doc/model_index.html
>
> === 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]

New description:

 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.

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

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

 === 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#comment:3>
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/0107018b4de77fa1-a7d7b332-2310-4b4d-997c-31d7449b1cfe-000000%40eu-central-1.amazonses.com.

Reply via email to