Skip to content

Conversation

@silviuaavram
Copy link
Member

Fixes #47246

  • added the Relationship section for Tooltips, with the content from the Accessibility section.
  • Accessibility section should now contain more a11y related info.
  • changed examples to mostly have describeChild passed to them, because their triggers already have visible text, and the aria-label added by Tooltip is overriding the text for screen readers, which is not what we want.
    • alternatively, we can keep the examples without describeChild but we should replace visible text buttons with icon buttons.

@silviuaavram silviuaavram added the docs Improvements or additions to the documentation. label Jan 20, 2026
Copilot AI review requested due to automatic review settings January 20, 2026 14:43
@mui-bot
Copy link

mui-bot commented Jan 20, 2026

Netlify deploy preview

Bundle size report

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/system 0B(0.00%) 0B(0.00%)
@mui/utils 0B(0.00%) 0B(0.00%)

Details of bundle changes

Generated by 🚫 dangerJS against 21dc46d

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the tooltip documentation by restructuring accessibility guidance and updating code examples to follow best practices. The changes move the label vs description explanation to a new "Relationship" section placed earlier in the documentation, and update the Accessibility section to be more concise and focused on general accessibility requirements.

Changes:

  • Added new "Relationship: label vs description" section explaining when to use describeChild prop
  • Updated Accessibility section to focus on general requirements rather than implementation details
  • Added describeChild prop to tooltip examples where triggers have visible text labels

Reviewed changes

Copilot reviewed 36 out of 36 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tooltips.md Restructured documentation with new Relationship section and updated Accessibility section; added describeChild to disabled button example
VariableWidth.tsx/js Added describeChild to all tooltip instances wrapping buttons with visible text
TriggersTooltips.tsx/js Added describeChild to all tooltip examples demonstrating trigger behaviors
TransitionsTooltips.tsx/js Added describeChild to tooltips wrapping buttons with visible text
TooltipOffset.tsx/js Added describeChild to tooltip wrapping button with visible text
TooltipMargin.tsx/js Added describeChild to tooltip wrapping button with visible text
PositionedTooltips.tsx/js Added describeChild to tooltips demonstrating positioning (top, left, right, bottom)
NonInteractiveTooltips.tsx/js Added describeChild to tooltip wrapping button with visible text
FollowCursorTooltips.tsx/js Added describeChild to tooltip wrapping Box with visible text
DisabledTooltips.tsx/js Added describeChild to tooltip wrapping disabled button with visible text
DelayTooltips.tsx/js Added describeChild to tooltip wrapping button with visible text
CustomizedTooltips.tsx/js Added describeChild to styled tooltip components wrapping buttons with visible text
ControlledTooltips.tsx/js Added describeChild to controlled tooltip wrapping button with visible text
ArrowTooltips.tsx/js Added describeChild to tooltip wrapping button with visible text
AnchorElTooltips.tsx/js Added describeChild to virtual element tooltip wrapping Box with visible text
Preview files Updated preview snippets to reflect describeChild additions in main files

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to the documentation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[tooltip] aria-label overwrites trigger's visible text

2 participants