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

[Feature Request]: InfoLabel does not show tooltip when hovered over #33745

Open
2 tasks done
FarhanMRahman opened this issue Jan 29, 2025 · 3 comments
Open
2 tasks done
Labels
Component: InfoLabel Fluent UI react-components (v9) Needs: PM Incoming shield issues that are feature type which require PM to review. Type: Feature

Comments

@FarhanMRahman
Copy link

FarhanMRahman commented Jan 29, 2025

Component

InfoLabel

Package version

9.49.2

React version

18.3.0

Environment

System:
  OS: Windows 11 10.0.26100
  CPU: (16) x64 AMD EPYC 7763 64-Core Processor
  Memory: 32.51 GB / 63.95 GB
Browsers:
  Edge: Chromium (131.0.2903.99)

Current Behavior

InfoLabel does not show any tooltip when hovered over. It has an aria-label of Information, but does not show any tooltip like many other FleuntUI buttons when it's hovered over.

Expected Behavior

When hovered over, InfoLabel should show a tooltip. Ideally it should be the same as its aria-label and show "Information" as hovered over. We can manually add a title prop and set the tooltip, but adding a tooltip would benefit other consumers as well since it'll be a great addition as an accessibility feature.

Expected behavior screenshot:

Image

Reproduction

https://stackblitz.com/run?file=src%2Fexample.tsx

Steps to reproduce

  1. Add an InfoLabel to a web page
  2. Hover over the InfoLabel for a few seconds
  3. No tooltip will be shown
  4. Ideally it should show a tooltip after a few seconds of hovering over, saying "Information" (same as its aria-label)

Are you reporting an Accessibility issue?

yes

Suggested severity

Medium - Has workaround

Products/sites affected

loop.microsoft.com

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.
@dmytrokirpa
Copy link
Contributor

According to the docs the InfoButton uses Popover, not a Tooltip. To activate it, users need to click on it or press enter/space when it's focused.

So, it's not really a bug. It's more of a feature request that doesn't follow the spec

@dmytrokirpa dmytrokirpa added Type: Feature Needs: PM Incoming shield issues that are feature type which require PM to review. Component: InfoLabel and removed Type: Bug 🐛 Needs: Triage 🔍 labels Jan 29, 2025
@FarhanMRahman
Copy link
Author

Thanks for the explanation and updating the Issue! Please let me know if I should create a new Feature Request issue or you updating this instance would suffice.

@FarhanMRahman FarhanMRahman changed the title [Bug]: InfoLabel does not show tooltip when hovered over [Feature Request]: InfoLabel does not show tooltip when hovered over Jan 29, 2025
@pradeept95
Copy link

I believe as a workaround you can modify infoButton popover props for InfoLabel. Following example might help you!

https://stackblitz.com/edit/9ctufvsq?file=src%2Fexample.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: InfoLabel Fluent UI react-components (v9) Needs: PM Incoming shield issues that are feature type which require PM to review. Type: Feature
Projects
None yet
Development

No branches or pull requests

3 participants