Skip to content

Suppress ARIA popup attributes on Tooltip/Popup triggers with non-interactive roles#1115

Merged
ykelkar-eightfold merged 6 commits intoEightfoldAI:mainfrom
ykelkar-eightfold:ykelkar/popup-a11y
Apr 7, 2026
Merged

Suppress ARIA popup attributes on Tooltip/Popup triggers with non-interactive roles#1115
ykelkar-eightfold merged 6 commits intoEightfoldAI:mainfrom
ykelkar-eightfold:ykelkar/popup-a11y

Conversation

@ykelkar-eightfold
Copy link
Copy Markdown
Contributor

@ykelkar-eightfold ykelkar-eightfold commented Apr 3, 2026

SUMMARY:

Fix issue where ARIA attribute is not allowed in non-interactive roles on Popup/Tooltip trigger elements. aria-haspopup, aria-expanded, and aria-controls are now conditionally suppressed for triggers with non-interactive roles (img, group, presentation, none) and/or via the new suppressTriggerAria prop.

GITHUB ISSUE (Open Source Contributors)

N/A

JIRA TASK (Eightfold Employees Only):

https://eightfoldai.atlassian.net/browse/ENG-174581

CHANGE TYPE:

  • Bugfix Pull Request
  • Feature Pull Request

TEST COVERAGE:

  • Tests for this change already exist
  • I have added unittests for this change

TEST PLAN:

  1. Run yarn story book
  2. Go to Popup -> Auto Suppress Trigger Arias
  3. Open devl tools and run ARC toolkit and make sure that the following error is ABSENT:
1 Error(s)

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented Apr 3, 2026

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

@ykelkar-eightfold ykelkar-eightfold changed the title Ykelkar/popup a11y Suppress ARIA popup attributes on Tooltip/Popup triggers with non-interactive roles Apr 3, 2026
@ykelkar-eightfold ykelkar-eightfold marked this pull request as ready for review April 4, 2026 00:12
Copy link
Copy Markdown
Contributor

@kheinrich-eightfold kheinrich-eightfold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM overall

Comment thread src/components/Tooltip/Tooltip.tsx Outdated
Comment thread src/components/Tooltip/Tooltip.tsx Outdated
@ykelkar-eightfold ykelkar-eightfold merged commit 9931b9a into EightfoldAI:main Apr 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants