Improve aria support - Columns and Navigation Drawer Icons #2299
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add aria-labels to unlabelled tab nav items
The drawer tabs which control primary navigation are only labelled by a title which is not available to many screenreaders. Add an aria-label attribute to each link to improve readability with screenreaders. Organize link attributes so link target is first followed by classname.
Abstract aria roles such as 'section' should not be used in content. Use non-abstract 'region' aria role instead of 'section' for columns. That role expects an aria-labelledby attribute with an id. Pass an ID to the column header. Remove the aria-label attribute on the ColumnHeader because the same value is output in plaintext as its child. Add additional role of 'heading' to ColumnHeader as required as the heading labelling a 'region'.
Do not add
aria-controls
to the icon links at this time. When a button is triggered, an individual column is added to the DOM. Since there's no wrapper around those columns, these icons do not control the content of a pane, but instead is replacing one pane with another.aria-controls
is therefore not applicable.#1349