Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DanisAvko
Copy link

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@gravity-ui-bot
Copy link
Contributor

Visual Tests Report is ready.

@DanisAvko DanisAvko linked an issue Nov 21, 2024 that may be closed by this pull request
}: ActionsPanelProps) => {
return (
<div className={b(null, className)} data-qa={qa}>
<div
{...filterDOMProps(otherProps, {labelable: true})}
Copy link
Contributor

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.

@DanisAvko DanisAvko force-pushed the feat/improve-handling-aria-props branch 3 times, most recently from cb6c66b to 116afec Compare November 21, 2024 22:52
@DanisAvko DanisAvko requested a review from ValeraS November 21, 2024 22:57
@korvin89
Copy link
Contributor

What is motivation for this changes?

@ogonkov #1929

@ogonkov
Copy link
Contributor

ogonkov commented Nov 22, 2024

Yes, didnt notice it from mobile app

style={style}
className={bAlert({corners}, spacing({py: 4, px: 5}, className))}
theme={theme}
view={view}
qa={qa}
role="alert"
Copy link
Contributor

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

@DanisAvko DanisAvko force-pushed the feat/improve-handling-aria-props branch from 116afec to cd2e988 Compare November 26, 2024 18:17
@DanisAvko DanisAvko force-pushed the feat/improve-handling-aria-props branch from cd2e988 to b321baf Compare November 29, 2024 09:57
@DanisAvko DanisAvko requested a review from amje December 3, 2024 12:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve handling aria-* props across all components
6 participants