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

fix(combobox): enable screen readers to announce "no results" properly #1316

Merged
merged 9 commits into from
Apr 3, 2024

Conversation

mivaylo
Copy link
Contributor

@mivaylo mivaylo commented Mar 13, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • If applicable, have a visual design approval

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Issue Number: CDE-1515

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Current NVDA voiceover behavior (notice for "USA" as there are no results it doesn't say "Dialog, list, no results"):
current behaviour.webm

And with the changes you can hear how NVDA says "List, no results":
after-changes.webm

Copy link
Contributor

github-actions bot commented Mar 13, 2024

👋 @kevinbuhmann,

  • 🙏 The Clarity team thanks you for opening a pull request
  • 🎉 The build for this PR has succeeded
  • 🔍 The PR is now ready for review
  • 🍿 In the meantime, view a preview of this PR
  • 🖐 You can always follow up here. If you're a VMware employee, you can also reach us on our internal Clarity Support space

Thank you,

🤖 Clarity Release Bot

@mivaylo mivaylo marked this pull request as draft March 13, 2024 13:22
@mivaylo mivaylo requested a review from kevinbuhmann March 13, 2024 14:50
@mivaylo mivaylo marked this pull request as ready for review March 13, 2024 14:50
Copy link
Member

@kevinbuhmann kevinbuhmann left a comment

Choose a reason for hiding this comment

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

There should be a unit test for this. I am looking into your question about the element id. I will reply in that thread.

@kevinbuhmann
Copy link
Member

I think the PR title should reworded to describe the functional change instead of the technical change. I would say 'enable screen readers to announce "no results" properly' or similar.

@mivaylo mivaylo changed the title fix(combobox): add aria-label for empty options case fix(combobox): enable screen readers to announce "no results" properly Mar 15, 2024
@kevinbuhmann kevinbuhmann self-assigned this Apr 2, 2024
@kevinbuhmann kevinbuhmann force-pushed the cde-1515-no-results-a11y-screen-reader-main branch from 3d4a1c8 to d682d5f Compare April 2, 2024 20:05
@kevinbuhmann kevinbuhmann force-pushed the cde-1515-no-results-a11y-screen-reader-main branch from d682d5f to 394aed8 Compare April 2, 2024 20:08
@kevinbuhmann kevinbuhmann merged commit a158ac7 into main Apr 3, 2024
7 checks passed
@kevinbuhmann kevinbuhmann deleted the cde-1515-no-results-a11y-screen-reader-main branch April 3, 2024 14:29
github-actions bot pushed a commit that referenced this pull request Apr 3, 2024
#1316)

CDE-1515

Co-authored-by: Kevin Buhmann <[email protected]>
(cherry picked from commit a158ac7)
kevinbuhmann added a commit that referenced this pull request Apr 3, 2024
#1344)

This is a backport a158ac7 (#1316) to 16.x.

CDE-1515

Co-authored-by: Kevin Buhmann <[email protected]>
Co-authored-by: mivaylo <[email protected]>
Copy link
Contributor

Hi there 👋, this is an automated message. To help Clarity keep track of discussions, we automatically lock closed PRs after 14 days. Please look for another open issue or open a new issue with updated details and reference this one as necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants