Skip to content

[docs] update Tooltip "disabled elements" section#48623

Closed
mayank99 wants to merge 2 commits into
mui:masterfrom
mayank99:mayank/tooltip-disabled-docs
Closed

[docs] update Tooltip "disabled elements" section#48623
mayank99 wants to merge 2 commits into
mui:masterfrom
mayank99:mayank/tooltip-disabled-docs

Conversation

@mayank99
Copy link
Copy Markdown

@mayank99 mayank99 commented Jun 4, 2026

Important

The changes from this PR have been moved into #48622.


Original PR description:

This is a companion to #48622. The "Disabled elements" section of the Tooltip docs has been reworked to remove the wrapper <span> recommendation. See #33182 (comment) for longer explanation.

There are two annoying parts:

@code-infra-dashboard
Copy link
Copy Markdown

code-infra-dashboard Bot commented Jun 4, 2026

Deploy preview

Bundle size

Bundle Parsed size Gzip size
@mui/material 0B(0.00%) 0B(0.00%)
@mui/lab 0B(0.00%) 0B(0.00%)
@mui/private-theming 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


Check out the code infra dashboard for more information about this PR.

@zannager zannager added the docs Improvements or additions to the documentation. label Jun 4, 2026
@zannager zannager requested a review from ZeeshanTamboli June 4, 2026 18:28
@mayank99 mayank99 force-pushed the mayank/tooltip-disabled-docs branch from 021dc0a to 341f0f9 Compare June 4, 2026 18:33
<span>
<Button disabled>A Disabled Button</Button>
</span>
<Button disabled style={{ pointerEvents: 'auto' }}>
Copy link
Copy Markdown
Author

@mayank99 mayank99 Jun 4, 2026

Choose a reason for hiding this comment

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

This isn't working anymore. It was working when I last tested it in 9.0.1: https://stackblitz.com/edit/sjet9vpm?file=src%2FDemo.tsx.

This change from #48606 is the likely cause:

const handleMouseOver = (event) => {
if (childNode?.disabled) {
return;
}

@mayank99
Copy link
Copy Markdown
Author

mayank99 commented Jun 4, 2026

Folded into #48622

@mayank99 mayank99 closed this Jun 4, 2026
@mayank99 mayank99 deleted the mayank/tooltip-disabled-docs branch June 4, 2026 23:30
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.

2 participants