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]: Unable to have an interactive element with role="button" inside DefinitionTooltip #18266

Closed
2 tasks done
shreevidya-ibm opened this issue Dec 20, 2024 · 3 comments
Closed
2 tasks done

Comments

@shreevidya-ibm
Copy link

shreevidya-ibm commented Dec 20, 2024

Package

@carbon/react

Browser

Chrome

Operating System

MacOS

Package version

v1.62.1

React version

v18.2.0

Automated testing tool and ruleset

IBM Equal Access Accessibility Checker - latest deployment

Assistive technology

MacOS VoiceOver

Description

Description
There is an accessibility issue when attempting to use an interactive element, such as a button with role="button", inside the DefinitionTooltip component. The DefinitionTooltip implementation does not seem to support or accommodate interactive child elements.

Recommended fix:
Interactive elements (e.g., < Button role="button" >) should be allowed and functional inside a DefinitionTooltip component.

WCAG 2.1 Violation

No response

Reproduction/example

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

Steps to reproduce

  • Open the Target Web Page
  • Open Developer Tools
  • Navigate to the Accessibility Assessment Tab
  • Run the IBM Equal Access Accessibility Checker
  • Analyze the Violation stating 'The element with role "button" contains descendants with roles "button" which are ignored by browsers'

Suggested Severity

None

Code of Conduct

@guidari
Copy link
Contributor

guidari commented Dec 20, 2024

Hey @shreevidya-ibm
Tooltips do not support interactive elements. You can use Toggletip instead.
Docs: https://carbondesignsystem.com/components/tooltip/usage/#overview

@guidari guidari closed this as completed Dec 20, 2024
@github-project-automation github-project-automation bot moved this to ✅ Done in Design System Dec 20, 2024
@shreevidya-ibm
Copy link
Author

shreevidya-ibm commented Jan 13, 2025

Hi @guidari , I find the same issue with Toggletip component as well. Please advise

@shreevidya-ibm
Copy link
Author

Created a similar issue for Toggletip: #18499

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