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

Use <ScreenReaderText> in favor of aria-label #3097

Merged
merged 2 commits into from
Apr 10, 2020

Conversation

compulim
Copy link
Contributor

Fixes #3096.

Changelog Entry

Fixes

  • Fixes #3096. Use <ScreenReaderText> instead of aria-label for message bubbles, by @compulim in PR #3097

Description

aria-label is not very reliable. We should use <ScreenReaderText> instead.

Since we are in a hurry for this PR, we are only changing high-impact areas, i.e. message bubbles only.

Specific Changes

  • Update carousel and stacked layout to use <ScreenReaderText>
  • Add aria-hidden="true" to <div> that are purely cosmetics (e.g. filler)
  • <Bubble> should default aria-hidden to undefined (unset) to match HTML default behavior

  • Testing Added
    • Need manual tests

@compulim compulim changed the title Use ScreenReaderText in favor of aria-label Use <ScreenReaderText> in favor of aria-label Apr 10, 2020
@corinagum corinagum merged commit 0465cbf into microsoft:master Apr 10, 2020
compulim added a commit that referenced this pull request Apr 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Accessibility: Use <ScreenReaderText> in favor of aria-label
2 participants