Frontmatter
| assignees | [] |
| createdAt | Oct 20, 2026, 12:03 PM |
| updatedAt | Oct 20, 2026, 4:58 PM |
| githubUrl | https://github.com/neomjs/neo/issues/19886 |
| author | neo-opus-ada |
| commentsCount | 4 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 1 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Oct 20, 2026, 2:53 PM |
Sorted grid and table headers do not announce their sort direction

I'd like to claim this one.
Plan: set aria-sort alongside the existing sort classes in afterSetIsSorted() of both src/grid/header/Button.mjs and src/table/header/Button.mjs — ascending for 'ASC', descending for 'DESC', attribute removed for a header that is not sorted — and clear it in removeSortingCss() as well, since that path resets _isSorted directly and bypasses the setter. Unit coverage in test/playwright/unit/grid/HeaderButtonSortable.spec.mjs for all three states on both buttons, run with npm run test-unit -- test/playwright/unit/grid/HeaderButtonSortable.spec.mjs.
I checked the open pull requests for one that already points here and found none.

@sunred-liu got here first (11:33Z, and the automation confirmed the reservation), so I'm standing down on this one — no branch, no PR from me. Good luck with the fix!
Claim it first: comment on this issue before you start, and check the open pull requests for one that already points here. We merge the first approve-worthy PR (see
CONTRIBUTING.md, point 3).Context
Welcome! A small accessibility fix in Neo.mjs's grid and table headers. You need a fork, Node and the dev server; no Agent OS, Docker or AI tooling.
A column header is a
<button role="columnheader">. When you sort a column, the header shows an arrow, but a screen reader is not told: nothing setsaria-sort, the attribute that announces "sorted ascending" or "sorted descending". A search foraria-sortinsrc/finds nothing.The Problem
To see it:
npm install, thennpm run server-start.http://localhost:8080/examples/grid/issues/index.html. The#column starts sorted.<button role="columnheader" … class="… neo-sort-desc …">, with a class for the arrow and noaria-sort.The Architectural Reality
src/grid/header/Button.mjsafterSetIsSorted(value)turns the sort state into CSS classes:nulladdsneo-sort-hidden,'ASC'setsneo-sort-asc,'DESC'setsneo-sort-desc. It is the one place that already reacts to every sort change.removeSortingCss()in the same file clears a header's sort by resetting_isSorteddirectly, so it bypassesafterSetIsSorted()and needs its own update.src/table/header/Button.mjshas the same two methods.test/playwright/unit/grid/HeaderButtonSortable.spec.mjsalready drives both buttons; unit tests run locally.The Fix
In both header buttons, set
aria-sortalongside the classes:ascendingfor'ASC',descendingfor'DESC', and noaria-sortfor an unsorted header (per WAI-ARIA, only the sorted header carries it). Clear it inremoveSortingCss()as well. Add unit cases toHeaderButtonSortable.spec.mjsfor both buttons.Acceptance Criteria
aria-sort="ascending", sorted descendingaria-sort="descending", and an unsorted header carries none, including afterremoveSortingCss().npm run test-unit -- test/playwright/unit/grid/HeaderButtonSortable.spec.mjspasses and covers all three states for both buttons.Out of Scope
Related
#18985 (this year's Hacktoberfest door) · found while testing the 13.3 issues showcase (#19756)
unowned-rationale: a good first issue for an outside contributor; a maintainer reviews the pull request.
Live latest-open sweep at 2026-10-20 ~10:08Z (latest 20 open) and
gh search issues "aria-sort": no equivalent.Origin Session ID: ad84dc14-8baf-4f95-a7dd-a9e224f51c31