-
Notifications
You must be signed in to change notification settings - Fork 6.8k
a11y(radio): Add radio buttons accessibility demo page #5958
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
So there's good news and bad news. 👍 The good news is that everyone that needs to sign a CLA (the pull request submitter and all commit authors) have done so. Everything is all good there. 😕 The bad news is that it appears that one or more commits were authored by someone other than the pull request submitter. We need to confirm that they're okay with their commits being contributed to this project. Please have them confirm that here in the pull request. Note to project maintainer: This is a terminal state, meaning the |
@@ -0,0 +1,32 @@ | |||
<section> | |||
<h2>Radio buttons in group</h2> | |||
<md-radio-group name="seasons" [(ngModel)]="favoriteSeason"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Each radio-group should have an aria-label
(e.g. "Seasons") or an aria-labelledby
(example)
<md-radio-group name="my_options" align="end"> | ||
<md-radio-button value="option_1">Option 1</md-radio-button> | ||
<md-radio-button value="option_2">Option 2</md-radio-button> | ||
<md-radio-button value="option_3">Option 3</md-radio-button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be good to use more meaningful options (like the seasons example does). Good examples could be pizza toppings, ice cream flavors, varieties of tea, types of bread, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, add the merge-ready label when ready
</section> | ||
|
||
<section> | ||
<h2>Disabled radio buttons</h2> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a <p>
under the header like
<p>This section contains three radio buttons for "Yes", "No", and "Maybe". The "Maybe" radio button is disabled.</p>
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.