You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ARIA 1.2 definition of aria-expanded contains the following recommendation "If a grouping container that can be expanded or collapsed is not owned by the element that has the aria-expanded attribute, the author SHOULD identify the controlling relationship by referencing the container from the element that has aria-expanded with the aria-controls property.".
I find this a bit odd. A grouping element should never be owned by a control (e.g. a button or a checkbox) so this is barely ever the case. Maybe for gridcells or treeitems, but other than that this is rare.
This basically recommends use of aria-controls on all controls that have aria-expanded. Given the lack of support for the attribute, often coupled with unnecessary verbosity, using aria-controls can make for a worse user experience.
I would drop recommendation for use of aria-controls if
The grouping element whose display is controlled by the element with aria-controls is a sibling of the control element and if the grouping element immedaitely follows the control in content order.
Therefore a button with aria-expanded followed by the content whose display is controlled by activating the button does not need aria-controls, while a button that controls content elsewhere on the page does need it.
I admit this is not a high priority issue, but I have recommended against use of aria-controls except where the content controlled by an element is not immediately adjacent to it.
The text was updated successfully, but these errors were encountered:
The ARIA 1.2 definition of aria-expanded contains the following recommendation "If a grouping container that can be expanded or collapsed is not owned by the element that has the aria-expanded attribute, the author SHOULD identify the controlling relationship by referencing the container from the element that has aria-expanded with the aria-controls property.".
I find this a bit odd. A grouping element should never be owned by a control (e.g. a button or a checkbox) so this is barely ever the case. Maybe for gridcells or treeitems, but other than that this is rare.
This basically recommends use of aria-controls on all controls that have aria-expanded. Given the lack of support for the attribute, often coupled with unnecessary verbosity, using aria-controls can make for a worse user experience.
I would drop recommendation for use of aria-controls if
The text was updated successfully, but these errors were encountered: