Skip to content

Conversation

@nour29110
Copy link

Fixes #42676

This PR adds missing guidance to the tooltip role documentation explaining the correct ARIA pattern for implementing "more info" icons (ⓘ) with tooltips.

Changes

  • Clarifies that the icon should be a <button> element, not have role="tooltip"
  • Provides example for simple tooltips using aria-describedby
  • Provides example for complex content using role="dialog"
  • Explains key distinctions between proper and improper usage

This addresses the confusion raised in the linked issue and referenced Stack Overflow discussion about the correct ARIA role for info icons.

Fixes #42676

- Adds guidance on proper use of aria-describedby for info icon tooltips
- Includes code examples for simple tooltips (plain text)
- Includes code examples for complex content (using dialog role)
- Explains the distinction between button trigger and tooltip content
@nour29110 nour29110 requested a review from a team as a code owner January 7, 2026 20:54
@nour29110 nour29110 requested review from scottohara and removed request for a team January 7, 2026 20:54
@github-actions github-actions bot added Content:Accessibility Accessibility docs size/s [PR only] 6-50 LoC changed labels Jan 7, 2026
- Add blank lines before code fences
- Remove extra whitespace in code example
nour29110 and others added 3 commits January 7, 2026 16:03
…e/index.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
- Put button with icon on single line
- Remove duplicate link at end of file
- [CSS: `:focus` pseudoclass](/en-US/docs/Web/CSS/Reference/Selectors/:focus)
- [Tooltips & Toggletips](https://inclusive-components.design/tooltips-toggletips/) by Heydon Pickering
- [Understanding SC 1.4.13:Content on Hover or Focus (WCAG Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html)
- [Understanding SC 1.4.13:Content on Hover or Focus (WCAG Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html)
Copy link
Contributor

Choose a reason for hiding this comment

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

[mdn-linter] reported by reviewdog 🐶

Suggested change
- [Understanding SC 1.4.13:Content on Hover or Focus (WCAG Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html)
- [Understanding SC 1.4.13:Content on Hover or Focus (WCAG Level AA)](https://www.w3.org/WAI/WCAG21/Understanding/content-on-hover-or-focus.html)

@Josh-Cena
Copy link
Member

I and some other maintainers highly suspect that this content is AI-generated. While we can't be 100% sure, we also don't think the additions meet our editorial conventions and quality standards anyway. In particular, you almost never see us using entire bolded paragraphs, because you should be writing in full sentences instead. In addition this should be living under "Examples".

Could you at least cite the sources for the guidelines you wrote here?

@nour29110 nour29110 closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Accessibility Accessibility docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Need clarification on the "more info" icon usage in relation to tooltip

2 participants