Skip to content

Conversation

@PahaN47
Copy link
Contributor

@PahaN47 PahaN47 commented Aug 2, 2024

No description provided.

@PahaN47 PahaN47 requested a review from NikitaCG as a code owner August 2, 2024 09:53
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@NikitaCG NikitaCG requested a review from niktverd August 2, 2024 10:09
}}
data-qa={qa}
aria-pressed={hasUserLike}
aria-label={i18n(Keyset.Save)}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to use title in this attr

aria-label={i18n(Keyset.Save)}
aria-describedby={titleElementId}
aria-label={isNumericTitle ? i18n(Keyset.Save) : undefined}
aria-describedby={isNumericTitle ? titleElementId : undefined}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Explanation: there is no need to add a label if title is text. At the same time when title is a number it is not very clear what the button does, so we add aria-label

@PahaN47 PahaN47 merged commit ed08069 into main Aug 8, 2024
@PahaN47 PahaN47 deleted the save-a11y branch August 8, 2024 15:30
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.

4 participants