-
Notifications
You must be signed in to change notification settings - Fork 136
Description
Description of bug or feature request
We currently support aria-selected
on gridcells, but aria-checked
provides certain additional features that seem worthwhile to be able to use in a grid:
- mixed-state selection
- multiple selection, where checked/unchecked state is more consistently exposed and more user-friendly than selected/unselected state
A specific use case where this came up was in a grid with selectable rows, where the first cell in each row contained a checkbox, but we wished to expose the checked/unchecked state directly on the focused gridcell element, and potentially on the rowheader cell as well (as it is the most common column users navigate through).
The proposal would be to:
- Add
aria-checked
as a supported state on gridcells and rows - Add the same checked vs. selected wording that currently exists on treeitems/options to gridcells and rows
Will this require a change to CORE-AAM?
It's possible it might require a change, since all other roles that support aria-checked
do note that fact and link to the aria-checked
mapping from the role mapping section. I'd personally lean against explicitly adding it though, since we don't do so for aria-selected
or other optional states.
Will this require a change to the ARIA authoring guide?
No
Activity
stes-acc commentedon Jun 28, 2023
It will provided the fact the guide resolves to explain the difference and the benefits using aria-checked on gridcells ;)
mcking65 commentedon Jun 29, 2023
Even more than that ...
It would be a significant revision to the grid pattern.
We don't yet have an example that supports row selection, so no updates to existing examples.
smhigley commentedon Jun 29, 2023
One example that shows a use case of checked/unchecked/mixed state on gridcells (not using the
aria-checked
attribute because of lack of support): https://react.fluentui.dev/?path=/docs/components-datagrid--defaultspectranaut commentedon Jul 11, 2023
Discussed in June 29th meeting
Next steps, Sarah "will add PR and also talk to browser folks".
msftedad commentedon Jan 9, 2024
Hi @spectranaut, Is this issue fixed?
aria-selected
forrole=gridcell
microsoft/accessibility-insights-web#7498