Skip to content

Aria-live needed for Dynamic Table Sorting #242

Open

Description

@mgifford

As an example, here is a table (which looks great):

<table role="grid" aria-readonly="true" class="lia-table"><thead class="lia-table__head"><tr role="row"><th class="lia-table__header text-left" aria-sort="descending" role="columnheader" scope="col"><span class="text-left">Question </span><button class="lia-btn lia-btn--transparent lia-table__sort " tabindex="0" aria-hidden="false" title="sort ascending"><i aria-hidden="true" class="icon icon-sort-desc lia-btn__icon"></i></button></th><th class="lia-table__header text-left" scope="col" role="columnheader"><span class="text-left">What’s the ask </span><button class="lia-btn lia-btn--transparent lia-table__sort active" tabindex="0" aria-hidden="false" title="not sorted"><i aria-hidden="true" class="icon icon-sort-desc lia-btn__icon"></i></button></th><th class="lia-table__header text-left" scope="col" role="columnheader"><span class="text-left">What to listen for </span><button class="lia-btn lia-btn--transparent lia-table__sort " tabindex="0" aria-hidden="false" title="sort ascending"><i aria-hidden="true" class="icon icon-sort-desc lia-btn__icon"></i></button></th><th class="lia-table__header text-left" scope="col" role="columnheader"><span class="text-left">How to capture it </span><button class="lia-btn lia-btn--transparent lia-table__sort " tabindex="0" aria-hidden="false" title="sort ascending"><i aria-hidden="true" class="icon icon-sort-desc lia-btn__icon"></i></button></th></tr></thead><tbody class="lia-table__body"><tr class="lia-table__row" role="row"><td role="rowheader" scope="row" class="text-left lia-table__data"><strong class="lia-bold">5. Who benefits the most from this product being successful?</strong> </td><td role="gridcell" class="text-left lia-table__data">Which users or communities are most impacted if this product works well? </td><td role="gridcell" class="text-left lia-table__data">Equitable service outcomes (e.g., rural families, limited-English speakers) </td><td role="gridcell" class="text-left lia-table__data">Use this to inform accessibility, language support, or design considerations </td></tr><tr class="lia-table__row" role="row"><td role="rowheader" scope="row" class="text-left lia-table__data"><strong class="lia-bold">6. What’s broken today that this is meant to fix?</strong> </td><td role="gridcell" class="text-left lia-table__data">Where is the current process's friction, duplication, confusion, or burden? </td><td role="gridcell" class="text-left lia-table__data">Problems tied to inefficiency, manual work, miscommunication, and error rates </td><td role="gridcell" class="text-left lia-table__data">Use these insights to reinforce the “why” behind the vision </td></tr><tr class="lia-table__row" role="row"><td role="rowheader" scope="row" class="text-left lia-table__data"><strong class="lia-bold">3. How does this help the agency deliver its mission?</strong> </td><td role="gridcell" class="text-left lia-table__data">What’s the mission-level impact this product supports? How will this make the agency better at what it’s meant to do? </td><td role="gridcell" class="text-left lia-table__data">Connection to public service goals—speed, equity, access, cost savings </td><td role="gridcell" class="text-left lia-table__data">Frame as: “Supports mission by [how it contributes to the goal].” </td></tr><tr class="lia-table__row" role="row"><td role="rowheader" scope="row" class="text-left lia-table__data"><strong class="lia-bold">4. What’s a sign this product is working as intended?</strong> </td><td role="gridcell" class="text-left lia-table__data">What observable signs, metrics, or behaviors would indicate success? </td><td role="gridcell" class="text-left lia-table__data">Measurable indicators like reduced drop-off, increased uptake, fewer calls for help </td><td role="gridcell" class="text-left lia-table__data">Capture as performance indicators or success criteria </td></tr><tr class="lia-table__row" role="row"><td role="rowheader" scope="row" class="text-left lia-table__data"><strong class="lia-bold">1. If this works well, what’s different for the user?</strong> </td><td role="gridcell" class="text-left lia-table__data">What does success look like from the user’s perspective? What changes in their experience? </td><td role="gridcell" class="text-left lia-table__data">Concrete improvements in time, access, simplicity, and frustration levels </td><td role="gridcell" class="text-left lia-table__data">Write as: “Users can now [do X] without [pain point].” </td></tr><tr class="lia-table__row" role="row"><td role="rowheader" scope="row" class="text-left lia-table__data"><strong class="lia-bold">2. What do we want this tool or service to enable?</strong> </td><td role="gridcell" class="text-left lia-table__data">What behavior, action, or outcome should this product make possible that isn’t possible now? </td><td role="gridcell" class="text-left lia-table__data">Outcomes, not just features (e.g., “apply easily” not “have a login form”) </td><td role="gridcell" class="text-left lia-table__data">Use active verbs: “Enables users to [action].” </td></tr></tbody></table>

But it should look like this:
https://www.w3.org/WAI/ARIA/apg/patterns/table/examples/sortable-table/

or
https://adrianroselli.com/2021/04/sortable-table-columns.html

Where ARIA is added to pass along the semantic information about the changes to the page.

Activity

  1. andre-dietrich commented on Sep 4, 2025

    @andre-dietrich
    Member

    There was a little bug, which caused that all columns have an aria information about the sorting ... with the next release, this will be fixed...

    4eb01d4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions