-
Notifications
You must be signed in to change notification settings - Fork 98
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
base: main
Are you sure you want to change the base?
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
116afec
to
cd2e988
Compare
cd2e988
to
b321baf
Compare
No description provided.