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

[a11y]: Disabled icon button doesn't show the tooltip #16475

Closed
2 tasks done
kromakollision opened this issue May 15, 2024 · 1 comment
Closed
2 tasks done

[a11y]: Disabled icon button doesn't show the tooltip #16475

kromakollision opened this issue May 15, 2024 · 1 comment

Comments

@kromakollision
Copy link

Package

@carbon/react

Browser

Chrome

Operating System

MacOS

Package version

1.55.0

React version

18.2.0

Automated testing tool and ruleset

none

Assistive technology

No response

Description

An icon-only button has a mandatory tooltip, for accessiblity. However, this tooltip doesn't show up when the button is disabled.

WCAG 2.1 Violation

No response

Reproduction/example

https://stackblitz.com/edit/github-9lactv?file=src%2FApp.jsx

Steps to reproduce

Add disabled to <Button />

Code of Conduct

@alisonjoseph
Copy link
Member

This is working as intended as you can't focus on a disabled button so there would be no way to activate a tooltip.

Disabled buttons are intentionally removed from the focus order, according to the spec. Therefore, any information revealed on hover cannot be surfaced on focus, resulting in an accessibility failure.

Related issue with more details carbon-design-system/carbon-website#3758

@alisonjoseph alisonjoseph reopened this May 15, 2024
@alisonjoseph alisonjoseph closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

No branches or pull requests

2 participants