-
Notifications
You must be signed in to change notification settings - Fork 779
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
feat(rule): New aria-toggle-field-label rule #1450
Conversation
test/integration/rules/aria-form-field-label/aria-form-field-label.html
Outdated
Show resolved
Hide resolved
test/integration/rules/aria-form-field-label/aria-form-field-label.html
Outdated
Show resolved
Hide resolved
test/integration/rules/aria-form-field-label/aria-form-field-label.html
Outdated
Show resolved
Hide resolved
test/integration/rules/aria-form-field-label/aria-form-field-label.html
Outdated
Show resolved
Hide resolved
test/integration/rules/aria-form-field-label/aria-form-field-label.html
Outdated
Show resolved
Hide resolved
test/integration/rules/aria-form-field-label/aria-form-field-label.html
Outdated
Show resolved
Hide resolved
test/integration/rules/aria-form-field-label/aria-form-field-label.html
Outdated
Show resolved
Hide resolved
<!-- menuitemchecbox --> | ||
<ul role="menu"> | ||
<li role="menuitem">Console</li> | ||
<li id="fail8" role="menuitemcheckbox" aria-checked="true">Word wrap</li> |
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.
Darnit... I think we made a mistake Jey. Some of these roles are named from contents, and others aren't. This role should pass, because "word wrap" is its accessible name. We may have to break up this rule into two. One for named from author only, and one for named from contents. Here's the breakdown:
Named from Contents
Rule: aria-toggle-field-label
checkbox
menuitemcheckbox
menuitemradio
radio
switch
Named by author only
Rule: aria-input-field-label
combobox
listbox
searchbox
slider
spinbutton
textbox
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.
As discussed the other Rule (aria-input-field-label
) PR is here - #1610, that handles named by author only
.
Ensures elements with one of the below semantic roles has a label.
Closes issue:
Reviewer checks
Required fields, to be filled out by PR reviewer(s)