radio: adding actionName attribute as label fallback (aria-label) #586
Labels
Accessibility
This issue is related to accessibility (a11y)
help wanted
The team would appreciate a PR from the community to address this issue
P3
An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Milestone
Bug, feature request, or proposal:
feature request
What is the expected behavior?
If the radio button has an empty label, it should be possible (for accessibility reasons) to provide a value for the
aria-label
attribute.What is the current behavior?
When the radio button is unlabeled, there is no way to set an aria-label on the input element as a fallback.
What are the steps to reproduce?
not applicable
What is the use-case or motivation for changing an existing behavior?
Think of a table with radio buttons in each row. The de facto labels are located in the
<th>
-part of the table.This could be a solution:
It results in:
Which versions of Angular, Material, OS, browsers are affected?
Material 2.0.0-alpha.5
Is there anything else we should know?
The text was updated successfully, but these errors were encountered: