Skip to content
Alberto Pérez Faria
Home
Work
About
Contact
Blancolores · Convocatoria
This portfolio
Data grid demo
Accessibility
Toggle dark theme
Ver en español
Download CV
LinkedIn
GitHub
Stack Overflow

14 results

Back to work

Lab · Demo

Accessible data grid

A product table with 10,000 rows of made-up retail data. Sort, filter and move around it with the keyboard: only the visible rows are rendered, so it stays fast.

Tab into the grid, then use the arrow keys to move between cells, Home and End to jump to the first or last cell of a row, Control + Home and Control + End for the first or last row, and Page Up or Page Down to move ten rows. Press Enter on a column header to sort.

Showing 10,000 of 10,000 products

Tab into the grid, then use the arrow keys to move between cells, Home and End to jump to the first or last cell of a row, Control + Home and Control + End for the first or last row, and Page Up or Page Down to move ten rows. Press Enter on a column header to sort.

How it’s built

  • ARIA grid pattern with a single tab stop: arrow keys move a roving focus between cells, and every row and column reports its position (aria-rowindex, aria-colindex) even when it isn’t rendered.
  • Virtual scrolling: only the rows in view (plus a small buffer) are in the DOM, so sorting and filtering 10,000 rows stays instant.
  • Sortable headers are real buttons with aria-sort, and the number of results is announced politely after every change.
  • Numbers and currency are formatted with Intl for the current language.