Use table caption instead of aria-describedby in page ordering

When the page listing is in re-ordering mode, use the Table caption to provide a screen reader description.
This is more suitable instead of aria-describedby & builds on changes made in #11250
pull/11312/merge
Aman Pandey 2024-01-23 17:26:16 +05:30 zatwierdzone przez LB (Ben Johnston)
rodzic 7f1216e225
commit 690c382577
3 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -141,7 +141,7 @@ Changelog
* Maintenance: Remove non-functional and inaccessible auto-focus on first field in page create forms (LB (Ben) Johnston)
* Maintenance: Migrate the unsaved form checks & confirmation trigger to Stimulus `UnsavedController` (Sai Srikar Dumpeti, LB (Ben) Johnston)
* Maintenance: Reduce gap between snippets and generic views/templates (Sage Abdullah)
* Maintenance: Migrate page listing menu re-ordering (drag & drop) from jQuery inline scripts to `OrderableController` (Aman Pandey, LB (Ben) Johnston)
* Maintenance: Migrate page listing menu re-ordering (drag & drop) from jQuery inline scripts to `OrderableController` with a more accessible solution (Aman Pandey, LB (Ben) Johnston)
* Maintenance: Clean up scss variable usage, remove unused variables and mixins, adopt more core token variables (Jai Vignesh J, Nandini Arora, LB (Ben) Johnston)
* Maintenance: Migrate Image URL generator views to class based views (Rohit Sharma)
* Maintenance: Use Django's `FileResponse` when serving files such as Images or Documents (Jake Howard)

Wyświetl plik

@ -190,7 +190,7 @@ This feature was implemented by Nick Lee, Thibaud Colas, and Sage Abdullah.
* Remove non-functional and inaccessible auto-focus on first field in page create forms (LB (Ben) Johnston)
* Migrate the unsaved form checks & confirmation trigger to Stimulus `UnsavedController` (Sai Srikar Dumpeti, LB (Ben) Johnston)
* Reduce gap between snippets and generic views/templates (Sage Abdullah)
* Migrate page listing menu re-ordering (drag & drop) from jQuery inline scripts to `OrderableController` (Aman Pandey, LB (Ben) Johnston)
* Migrate page listing menu re-ordering (drag & drop) from jQuery inline scripts to `OrderableController` with a more accessible solution (Aman Pandey, LB (Ben) Johnston)
* Clean up scss variable usage, remove unused variables and mixins, adopt more core token variables (Jai Vignesh J, Nandini Arora, LB (Ben) Johnston)
* Migrate Image URL generator views to class based views (Rohit Sharma)
* Use Django's `FileResponse` when serving files such as Images or Documents (Jake Howard)

Wyświetl plik

@ -347,10 +347,10 @@ class BaseIndexView(generic.IndexView):
kwargs["actions_next_url"] = self.index_url
if self.show_ordering_column:
kwargs["caption"] = _(
"Focus on the drag button and press up or down arrows to move the item, then press enter to submit the change."
)
kwargs["attrs"] = {
"aria-description": _(
"Focus on the drag button and press up or down arrows to move the item, then press enter to submit the change."
),
"data-controller": "w-orderable",
"data-w-orderable-active-class": "w-orderable--active",
"data-w-orderable-chosen-class": "w-orderable__item--active",