Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## Unreleased

### Bug Fixes
- `Tooltip`: Ensure tooltips do not capture pointer events, allowing clicks to pass through to underlying elements ([#77415](https://github.com/WordPress/gutenberg/pull/77415)).

### Breaking Changes

- `ExternalLink`: No longer adds `noreferrer` to the `rel` attribute. `noopener` is still applied. Consumers relying on the previous behavior should pass `rel="noopener noreferrer"` explicitly ([#26968](https://github.com/WordPress/gutenberg/pull/26968)).
Expand Down
2 changes: 2 additions & 0 deletions packages/components/src/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ function UnforwardedTooltip(
id={ describedById }
overflowPadding={ 0.5 }
store={ tooltipStore }
disablePointerEventsOnApproach={ false }
wrapperProps={ { style: { pointerEvents: 'none' } } }
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could this be moved to packages/components/src/tooltip/style.scss ?

Comment on lines +126 to +127
Copy link

Copilot AI Apr 21, 2026

Choose a reason for hiding this comment

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

New behavior (making tooltips click-through) isn’t currently covered by unit tests. Since this change is implemented via Ariakit props + pointerEvents: 'none', please add a Tooltip test that asserts the rendered tooltip wrapper (or tooltip element, depending on Ariakit’s DOM structure) has pointer-events: none (or otherwise verifies clicks aren’t intercepted) to prevent regressions.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

@ciampo ciampo Apr 21, 2026

Choose a reason for hiding this comment

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

I'm afraid we won't be able to test this in unit tests with the current jsdom-based setup

>
{ text }
{ shortcut && (
Expand Down
Loading