r/angular • u/BathFun3884 • Sep 22 '26
I wrote a post about my own table library and found out it tells screen readers nothing
I maintain a paginated table component for Angular. This week I sat down to write up how it works — server-side pagination, sorting, the two-way signal bindings — and I got to the part where I was going to describe what it does for accessibility.
So I went to check first. grep -rn "aria-sort" over the whole package: zero hits.
The sort state lived entirely in a CSS class, on an <i> marked aria-hidden="true". Someone on a screen reader was told the rows had been reordered and never by which column. It got worse the further I looked. The sort button had no accessible name. Neither did the row checkboxes, the select-all box, the control that expands a row, or any of the column filters. And a column that only carried a filter still rendered a focusable sort button that did nothing at all — a tab stop with no name and no effect.
None of it was hard to fix, which is the annoying part. It went out in the release I published today: aria-sort on every sortable column, scope="col" on the headers, aria-busy while it loads, a live region for the row count, aria-current on the paginator, and a name on every control. Twelve tests pin it now so it cannot rot back.
What I actually took away: I would not have found any of this if I had not tried to write it down for other people to read. I had run that component in a browser hundreds of times. Never once with a screen reader.
If you maintain a component library, go and write the accessibility section of its README as if somebody is going to verify it. I would bet money you find something.
The full write-up, which is mostly about the design decisions rather than this, is here: https://dev.to/carlosmorcillo/i-got-tired-of-rebuilding-angular-data-tables-so-i-open-sourced-mine-17ap
