-
Notifications
You must be signed in to change notification settings - Fork 788
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: add new ARIA roles #3138
feat: add new ARIA roles #3138
Conversation
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.
Great start! Since some of these roles have attributes, owned elements, or prohibited attributes, we'll need to add a few more tests to make sure they are all covered
- test/integration/rules/aria-allowed-attr/failure - add elements to ensure
mark
andsuggestion
do not allowaria-label
andaria-labelledby
- test/integration/rules/aria-allowed-attr/passes - add element for
comment
to allowaria-level
,aria-posinset
, andaria-setsize
- test/integration/rules/aria-required-children - add pass and fail tests for
suggestion
havinginsertion
anddeletion
children/aria-owns
<span role="insertion">option</span> | ||
</div> | ||
|
||
<div role="suggestion" id="fail8"> |
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.
Good start. So with our integration tests we want to be really thorough and test all possible states, so we'll want 3 more tests added. One for suggestion
without any children, and one for suggestion
with just an insertion
child, and one for suggestion
with just a deletion
child.
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.
Unable to test for one child due to requiredOwned
(as discussed). However ARIA Suggestion Docs say that both need to be present, playground throws no errors if using one child
20794da
to
f51b5a3
Compare
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. Will wait for @WilcoFiers final approve.
@WilcoFiers the main question we have is how to handle the role=suggestion
element requiring that it owns both a role=insertion
and role=deletion
element. Currently aria-required-children
will pass if at least one role is owned, but not enforce all roles.
@straker Suggestion doesn't require both roles. MDN is wrong about that:
Either way, it's so early days on this spec, I don't think we should be too harsh on testing just yet. |
ARIA 1.3 Annotations Added new roles: mark, suggestion, and comment.
Closes issue: #3122