Skip to content

Conversation

DRiFTy17
Copy link
Collaborator

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added/updated: Y
  • Docs have been added/updated: Y
  • Does this PR introduce a breaking change? N
  • I have linked any related GitHub issues to be closed when this PR is merged? N

Describe the new behavior?

The default state for the overlay hide property is now set to "never" (instead of "anchor-hidden"). This tells the overlay not to hide itself when its anchor element is hidden from view via a clipping container (typically a scrollable parent element/containing block).

The reason for this change is due to inconsistencies in detecting clipping ancestors across browsers. This functionality is an implementation detail behind most other popover-based components, and can be enabled if a developer chooses to use the low level overlay component directly, but otherwise this change should be transparent.

The only noticeable difference is if you scroll an anchor element while an attached overlay is open, but the anchor element is scrolled out of view, the overlay will no longer automatically hide itself by default. This is likely a more intuitive default anyway.

@DRiFTy17 DRiFTy17 requested a review from a team as a code owner June 30, 2025 20:13
@DRiFTy17 DRiFTy17 added the patch Increment the patch version when merged label Jun 30, 2025
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@DRiFTy17 DRiFTy17 merged commit 6244cd8 into main Jul 1, 2025
10 checks passed
@DRiFTy17 DRiFTy17 deleted the fix-overlay-hide-default branch July 1, 2025 17:06
Copy link
Contributor

github-actions bot commented Jul 2, 2025

🚀 PR was released in v3.9.2 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants