patternfly / patternfly/patternfly-react

Bug - Tooltip - aria prop not working correctly with VO

Open
#8,983 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A11y Stale
Dominant language
TypeScript
Stars
862
Forks
392
Avg merge
4d 8h
Merged PRs (30d)
9

Description

Describe the problem
A clear and concise description of the problem. Which components are affected?
There is a bug in the "On icon with dynamic content" demo of Tooltip. http://patternfly-react-v5.surge.sh/components/tooltip#on-icon-with-dynamic-content

In the docs it is mentioned that you can pass aria to prevent the content from being read twice by a screenreader, however the content is still getting read twice in the example if you test with VO.

How do you reproduce the problem?

Go to the link above and navigate to the tooltip with VO.

Expected behavior
A clear and concise description of the expected behavior.

Tooltip content is read only once.

Is this issue blocking you?
List the workaround if there is one.
Not blocking, found workaround by setting role="none" on Tooltip

What is your product?
Found in ODH


Jira Issue: PF-134

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Tooltip "On icon with dynamic content" demo at the linked PatternFly React documentation page and inspect how its aria prop is passed. Reproduce the behavior with VoiceOver, compare it with the documented role="none" workaround, and consider the issue done when the tooltip content is announced only once without that workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
accessibility, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.