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: make popover modeless by default, add modality properties #7412

Merged
merged 5 commits into from
May 16, 2024

Conversation

web-padawan
Copy link
Member

@web-padawan web-padawan commented May 15, 2024

Description

  • Changed the popover to set modeless property on the overlay by default, added modal property (default to false),
  • Added the withBackdrop property to vaadin-popover that works the same as in vaadin-dialog when modal,
  • Changed the backdrop to use pointer-events: none when the popover is non-modal (to allow target clicks),
  • Added a separate document click listener to also close on outside click when the overlay is modeless.

Type of change

  • Feature

@web-padawan web-padawan marked this pull request as draft May 15, 2024 10:55
@web-padawan web-padawan changed the title feat: add properties to configure popover modality and closing feat: make popover modeless by default, add modality properties May 15, 2024
@web-padawan web-padawan force-pushed the feat/popover-dialog-features branch 2 times, most recently from a75f194 to 2cb5d3c Compare May 15, 2024 11:36
@web-padawan web-padawan marked this pull request as ready for review May 15, 2024 11:54
@web-padawan web-padawan marked this pull request as draft May 15, 2024 12:39
@web-padawan
Copy link
Member Author

Note: extracted closing logic to #7414, will update this PR to be based on that one.

@web-padawan web-padawan force-pushed the feat/popover-dialog-features branch 3 times, most recently from 599ff25 to 9fc2cc3 Compare May 15, 2024 13:01
@web-padawan web-padawan force-pushed the feat/popover-dialog-features branch from 9fc2cc3 to 3ca5bed Compare May 16, 2024 07:34
@web-padawan web-padawan marked this pull request as ready for review May 16, 2024 07:34
@web-padawan web-padawan requested a review from vursen May 16, 2024 07:55
packages/popover/src/vaadin-popover.js Outdated Show resolved Hide resolved
@web-padawan web-padawan requested a review from vursen May 16, 2024 11:49
Copy link

sonarcloud bot commented May 16, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@web-padawan web-padawan merged commit dc9b8c7 into main May 16, 2024
9 checks passed
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.5.0.alpha1 and is also targeting the upcoming stable 24.5.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.

None yet

4 participants