From 310451b35e72920d0b673d25abccb53ec7a99700 Mon Sep 17 00:00:00 2001 From: Sarah Higley Date: Tue, 3 Dec 2024 14:37:24 -0800 Subject: [PATCH 1/2] feat: add aria-checked support to gridcell --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index d44f687ec..eee062789 100644 --- a/index.html +++ b/index.html @@ -3581,6 +3581,12 @@

Definition of Roles

A gridcell can be focusable, editable, and selectable. A gridcell can have relationships such as aria-controls to address the application of functional relationships.

If an author intends a gridcell to have a row header, column header, or both, and if the relevant headers cannot be determined from the DOM structure, authors SHOULD explicitly indicate which header cells are relevant to the gridcell by applying aria-describedby on the gridcell and referencing [=elements=] with role rowheader or columnheader.

In a treegrid, authors MAY define a gridcell as expandable by using the aria-expanded attribute. If the aria-expanded attribute is provided, it applies only to the individual cell. It is not a proxy for the container row, which also can be expanded. The main use case for providing this attribute on a gridcell is pivot table behavior.

+

Authors SHOULD NOT specify both aria-selected and aria-checked on a single gridcell element except in the extremely rare circumstances where all the following conditions are met:

+

Authors MUST ensure [=elements=] with role gridcell are accessibility children of an element with the role row.

@@ -3633,6 +3639,7 @@

Definition of Roles

Supported States and Properties:
    +
  • aria-checked
  • aria-disabled
  • aria-errormessage
  • aria-expanded
  • From ddc6426c616c2850a073edaacc156f845aacaeec Mon Sep 17 00:00:00 2001 From: Sarah Higley Date: Mon, 9 Dec 2024 14:25:05 -0800 Subject: [PATCH 2/2] add aria-checked to row as well --- index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.html b/index.html index eee062789..c7d1e8bb4 100644 --- a/index.html +++ b/index.html @@ -6777,6 +6777,12 @@
    Presentational Role Inheritance

    Rows contain cell or gridcell [=elements=], and thus serve to organize a table, grid, or treegrid.

    While the row role can be used in a table, grid, or treegrid, the semantics of aria-expanded, aria-posinset, aria-setsize, and aria-level are only applicable to the hierarchical structure of an interactive tree grid. Therefore, authors MUST NOT apply aria-expanded, aria-posinset, aria-setsize, and aria-level to a row that descends from a table or grid, and user agents SHOULD NOT expose any of these four properties to assistive technologies unless the row descends from a treegrid.

    +

    Authors SHOULD NOT specify both aria-selected and aria-checked on a single row element except in the extremely rare circumstances where all the following conditions are met:

    +
      +
    • The meaning and purpose of aria-selected is different from the meaning and purpose of aria-checked in the user interface.
    • +
    • The user interface makes the meaning and purpose of each state apparent.
    • +
    • The user interface provides a separate method for controlling each state.
    • +

    Authors MUST ensure [=elements=] with role row are accessibility children of an element with the role table, grid, rowgroup, or treegrid.

    While aria-disabled is currently supported on row, in a future version the working group plans to prohibit its on elements with role row except when the element is in the context of a grid or treegrid.

    @@ -6844,6 +6850,7 @@
    Presentational Role Inheritance
Supported States and Properties:
    +
  • aria-checked
  • aria-colindex
  • aria-expanded
  • aria-level