Skip to content

Use data attributes, and add aria-colindex#139

Merged
severo merged 5 commits intomasterfrom
control-sort-with-keyboard
Apr 28, 2025
Merged

Use data attributes, and add aria-colindex#139
severo merged 5 commits intomasterfrom
control-sort-with-keyboard

Conversation

@severo
Copy link
Copy Markdown
Contributor

@severo severo commented Apr 28, 2025

Fixes:

  • use custom data- attributes instead of hacking aria- attributes: Instead of aria-posinset and aria-setsize, use
    data-order-by-index and data-order-by-size to avoid misleading the users. ARIA does not currently support multicolumn sort, so don't try to be clever. See aria-sort should be allowed on multiple columns w3c/aria#283
  • set aria-colindex to the cells. It's explicit and will be useful when implementing column hiding (Feature: hide columns #3)

@severo severo changed the title Control sort using the keyboard Navigate the grid with keyboard (no action at the moment) Apr 28, 2025
Base automatically changed from keyboard to master April 28, 2025 16:30
severo added 4 commits April 28, 2025 18:34
Instead of `aria-posinset` and `aria-setsize`, use
`data-order-by-index` and `data-order-by-size`, to avoid misleading
the users. Multicolumn sort is not supported by ARIA at the moment,
so didn't try to be clever. See w3c/aria#283
… let edit the content"

This reverts commit dc312f9.

It's not needed (and even recommended against, see
https://www.w3.org/WAI/ARIA/apg/patterns/grid/#wai-ariaroles,states,andproperties)
because aria-readonly is already set on the "grid" role element.
@severo severo force-pushed the control-sort-with-keyboard branch from 825d730 to 83e1ff9 Compare April 28, 2025 16:34
@severo severo changed the title Navigate the grid with keyboard (no action at the moment) Use data attributes, and add aria-colindex Apr 28, 2025
@severo
Copy link
Copy Markdown
Contributor Author

severo commented Apr 28, 2025

Merging, as it's nothing crucial or hard

@severo severo merged commit cfd4c3b into master Apr 28, 2025
10 checks passed
@severo severo deleted the control-sort-with-keyboard branch April 28, 2025 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant