-
Notifications
You must be signed in to change notification settings - Fork 99
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: improve handling aria props #1958
Conversation
Preview is ready. |
Visual Tests Report is ready. |
}: ActionsPanelProps) => { | ||
return ( | ||
<div className={b(null, className)} data-qa={qa}> | ||
<div | ||
{...filterDOMProps(otherProps, {labelable: true})} |
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.
Aria labelling attributes on element with implicit or explicit role none
/ presentation
are redundant. Use appropriate role or remove them.
Please look through other similar places.
cb6c66b
to
116afec
Compare
Yes, didnt notice it from mobile app |
src/components/Alert/Alert.tsx
Outdated
style={style} | ||
className={bAlert({corners}, spacing({py: 4, px: 5}, className))} | ||
theme={theme} | ||
view={view} | ||
qa={qa} | ||
role="alert" |
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.
Alert is used more like continer, not like aria alert, this prop and labelable props not needed here
cd2e988
to
b321baf
Compare
58b5337
to
fecc997
Compare
fecc997
to
a64279f
Compare
No description provided.