Skip to content
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

Fix the description for aria-labelledby #596

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/forms/labels.html.erb.md
Expand Up @@ -130,7 +130,7 @@ The `aria-label` attribute can also be used to identify form controls. This appr
#### Using aria-labelledby
{:.ap}

The `aria-labelledby` attribute can also be used to identify form controls. This approach is well supported by screen readers and other assistive technology, but, unlike the `title` attribute (see below), the information is not conveyed to visual users. The approach should therefore only be used when the label of the control is clear from the surrounding content, like the button in the example below.
The `aria-labelledby` attribute can also be used to identify form controls. This approach is well supported by screen readers and other assistive technology,like the `title` attribute (see below), the information is conveyed to visual users. The approach should therefore only be used when the label of the control is visually shown to the users either by a tooltip or visible text.

The `id` of the element containing the label text is used as the value of the `aria-labelledby` attribute.

Expand Down