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
Single-selection containers where the currently focused item is not selected. The selection normally follows the focus, and is managed by the user agent.
This sounds to me like it is not necessary to use aria-selected if only one element can be selected and the selected element is always identical with the focused element. I think this is wrong, because the focused element is only perceptible in form mode (focusing with tab key). If you read with the arrow keys, the focus is not on the element and therefore the selected element is not perceptible.
The same applies to the quick navigation and the element overview (e.g. in JAWS for drop-down lists and tabs with C and INS+Ctrl+C).
If no DOM element in the widget is explicitly marked as selected, assistive technologies MAY convey implicit selection which follows the keyboard focus of the managed focus widget.
Confusing is also the "May", if no aria-selected is marked. This means that you can't rely on it and have to use aria-selected. However, this is not explicitly mentioned in the specification of the roles. For example, the specification for Tab uses a "Should" for the same subject.
In the absence of an aria-selected attribute on the current tab, user agents SHOULD indicate to assistive technologies through the platform accessibility API that the currently focused tab is selected.
I suggest that the section be changed to always use aria-selected (possible exception: use of aria-activedescendant).
To hear the different output with and without aria-selected by the screenreader I created a test file.
ARIA specification about aria-selected says:
This sounds to me like it is not necessary to use
aria-selected
if only one element can be selected and the selected element is always identical with the focused element. I think this is wrong, because the focused element is only perceptible in form mode (focusing with tab key). If you read with the arrow keys, the focus is not on the element and therefore the selected element is not perceptible.The same applies to the quick navigation and the element overview (e.g. in JAWS for drop-down lists and tabs with C and INS+Ctrl+C).
Confusing is also the "May", if no
aria-selected
is marked. This means that you can't rely on it and have to usearia-selected
. However, this is not explicitly mentioned in the specification of the roles. For example, the specification for Tab uses a "Should" for the same subject.I suggest that the section be changed to always use
aria-selected
(possible exception: use ofaria-activedescendant
).To hear the different output with and without
aria-selected
by the screenreader I created a test file.Related: #700
The text was updated successfully, but these errors were encountered: