-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Divider] Add aria role if it's not implicit #16256
Conversation
Details of bundle changes.Comparing: f69797f...a21f225
|
assert.strictEqual(wrapper.find('div').props().role, 'separator'); | ||
}); | ||
|
||
it('passed roles override', () => { |
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.
I'm trying to think of a better way to word this.
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('passed roles override', () => { | |
test('passed roles override', () => { |
?
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.
I guess, or overrides the computed role with a provided one
Follow-up on #15339 (spotted due to line not being covered)
Setting the role only if a non-default
component
prop is passed follows the behavior in our Button.Rules of aria attributes for hr elements