-
-
Notifications
You must be signed in to change notification settings - Fork 555
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
aria-label and aria-labelledby #199
Comments
I ran into that while working on a recent project. My take was that if the label element is there, the aria-labelledby should go on the form element to connect the two in a reverse manner of the for attribute:
If there isn't a label (why aren't you putting labels on your form elements?????), then you use aria-label on another HTML element (fieldset, H2, P, etc) to help describe the form element:
In my mind, the best example where this makes sense isn't where there isn't a label, but rather is on radio/checkbox groups:
I'm happy to be wrong though and get clarity on this. |
So the way I understand it...
|
Not sure if this article is written yet, but thought I'd comment on a recent use case I came across for In the case of form fields that are within a legitimate tabular data table, visually the table column and row headings ( Thus, a visible label is visually redundant, and labelledby can be used as such:
Codepen showing the various solutions that were given to me when exploring this particular case. |
This looks like it would be a great article and addition to the pattern library that Dennis and I are building in a branch! — On Mon, Oct 21, 2013 at 9:06 AM, keithwyland [email protected]
|
Greetings. I am interested in contributing. Can anyone tell me where I can Best, On Tue, Oct 22, 2013 at 9:13 PM, Dave Rupert [email protected]:
|
@jthaddeus Article ideas and requests can be found here #12, but also make sure to check the issue tracker as well for articles already started. |
@keithwyland Here's the branch Dave is referencing https://github.com/a11yproject/a11yproject.com/tree/feature/patterns Feel free to give it a spin. |
@grayghostvisuals @davatron5000 Cool! I'll take a look when I've got some spare time. Thanks! |
This issue has become "stale" — @grayghostvisuals, feel free to open a new issue if you'd like to continue. |
Came across these two ARIA attributes which confused me a bit especially the documentation explaining them. I've noticed in bootstrap that they use the attributes on their modals and wanted to bring to light exactly why we use them and their meaning.
Hoping that before I write the article I can spark some convo with thoughts and ideas and then incorporate them.
This is the doc link I have so far…
http://www.w3.org/TR/2010/WD-wai-aria-20100916/states_and_properties#aria-label
The text was updated successfully, but these errors were encountered: