microsoft / microsoft/fluentui
[Bug]: Tooltip for HorizontalBarCharts cannot automatically close
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 20.3k
- Forks
- 2.9k
- Avg merge
- 2d 9h
- Merged PRs (30d)
- 46
Description
Library
React / v8 (@fluentui/react)
System Info
System:
OS: Windows 11 10.0.22631
CPU: (20) x64 Intel(R) Core(TM) i9-10900X CPU @ 3.70GHz
Memory: 9.48 GB / 31.72 GB
Browsers:
Edge: Chromium (119.0.2151.58)
Internet Explorer: 11.0.22621.1
Are you reporting Accessibility issue?
no
Reproduction
https://codepen.io/xiaoyangliu1123/pen/abXjRyb
Bug Description
Actual Behavior
When I press the tab key to view bar information within the same HorizontalBarChart, it should only display the tooltip for the bar currently in focus. However, when there are multiple HorizontalBarCharts on the page (let's assume they are arranged spatially as HBC1 and HBC2), if my tab key focus is on HBC2, the tooltip for the last bar in HBC1 does not automatically close.
Expected Behavior
If my tab key focus is on HBC2, the tooltip for the last bar in HBC1 should automatically close, thus for users who rely on keyboard operations, they won't need to make additional efforts to manually close the tooltip for HBC1.
Logs
No response
Requested priority
High
Products/sites affected
No response
Are you willing to submit a PR to fix?
no
Validations
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- The provided reproduction is a minimal reproducible example of the bug.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the linked CodePen reproduction and trace the HorizontalBarChart tooltip behavior in the React v8 implementation, focusing on keyboard focus changes between multiple charts. Confirm the current behavior, then verify that moving focus to a bar in a second chart closes the tooltip from the first chart without requiring manual dismissal.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100