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

chore: remove unnecessary aria labels (PT-188528220) #14

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

emcelroy
Copy link
Contributor

@emcelroy emcelroy commented Dec 4, 2024

#188528220

As noted in the PT story comments, the use of arial-label with value "speaker" on the h3 elements was causing screen readers to say "heading level 3 - speaker" instead of "heading level 3 - DAVAI" or "heading level 3 - User" which is more appropriate for identifying the speaker. The latter is what screen readers say when the aria-label attribute is removed. Even though the aria-label on associated p elements wasn't causing a similar problem with the message content, I removed that, too, since it doesn't seem like it's appropriate use of the aria-label attribute. Plus, the p element doesn't support aria-label.

@emcelroy emcelroy changed the title chore: remove unnecessary aria labels chore: remove unnecessary aria labels (PT-188528220) Dec 4, 2024
Copy link

@bgoldowsky bgoldowsky left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@emcelroy emcelroy merged commit 2bca963 into main Dec 6, 2024
5 checks passed
@emcelroy emcelroy deleted the remove-unnecessary-aria-labels branch December 6, 2024 15:57
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.

2 participants