Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add internal API for nested overlays to bringToFront #8690

Merged
merged 1 commit into from
Feb 20, 2025

Conversation

web-padawan
Copy link
Member

Description

Part of #8521

Fixing the above issue where popover overlay ends up behind its parent dialog overlay requires us to add new APIs:

  1. Add internal API to mark parent-child relationship so that an overlay can have a single "nested" overlay (and then call bringToFront() recursively for all its nested overlays once its own bringToFront() is called),
  2. Add helper to detect which overlay needs to be marked as parent based on certain criteria - in case of vaadin-popover it should be basically the overlay where its target is attached (note that vaadin-popover itself can be elsewhere).

This PR focuses on the first part. I'm going to create a separate PR as a follow-up with the actual fix for popover.

Type of change

  • Internal feature

@web-padawan web-padawan force-pushed the feat/nested-overlay branch 2 times, most recently from e2e8240 to 4c9abcb Compare February 17, 2025 14:56
Copy link

@web-padawan web-padawan merged commit 3b5970d into main Feb 20, 2025
9 checks passed
@web-padawan web-padawan deleted the feat/nested-overlay branch February 20, 2025 09:37
web-padawan added a commit that referenced this pull request Feb 24, 2025
…8723)

Co-authored-by: Serhii Kulykov <iamkulykov@gmail.com>
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.7.0.alpha12 and is also targeting the upcoming stable 24.7.0 version.

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

Successfully merging this pull request may close these issues.

3 participants