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

Merged
merged 1 commit into from
Dec 28, 2024
Merged

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 2 times, most recently from cd2e988 to b321baf Compare November 29, 2024 09:57
@DanisAvko DanisAvko requested a review from amje December 3, 2024 12:03
@DanisAvko DanisAvko changed the base branch from main to next December 28, 2024 12:19
@DanisAvko DanisAvko force-pushed the feat/improve-handling-aria-props branch 3 times, most recently from 58b5337 to fecc997 Compare December 28, 2024 12:51
@DanisAvko DanisAvko force-pushed the feat/improve-handling-aria-props branch from fecc997 to a64279f Compare December 28, 2024 12:54
@amje amje merged commit ca226a5 into next Dec 28, 2024
5 of 6 checks passed
@amje amje deleted the feat/improve-handling-aria-props branch December 28, 2024 13:18
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