-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiAvatar] Adding conditionalrole
attribute to EuiAvatar container DIV
#5423
Conversation
Preview documentation changes for this PR: https://eui.elastic.co/pr_5423/ |
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, and the new conditional logic is captured in the props > isDisabled
unit test. 👍 Thanks for the great accessibility work as always Trevor!
Co-authored-by: Constance <[email protected]>
Preview documentation changes for this PR: https://eui.elastic.co/pr_5423/ |
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.
This looks good to me! Thanks Trevor!
Preview documentation changes for this PR: https://eui.elastic.co/pr_5423/ |
Summary
The EuiAvatar has an
aria-label
attribute that is throwing an error in the latest axe-core plugin and CLI rulesets. This PR adds a conditionalrole
attribute that resolves to "img" or "presentation" if theisDisabled
prop is passed. PR closes #5289 and closes #5288.Checklist
Added documentation