KEMBAR78
refactor!: update login overlay to use native popover by web-padawan · Pull Request #9794 · vaadin/web-components · GitHub
Skip to content

Conversation

@web-padawan
Copy link
Member

@web-padawan web-padawan commented Jul 23, 2025

Description

Fixes #9699

Depends on #9792

  • Changed vaadin-login-overlay to use native popover instead of teleporting the content to the <body>
  • Updated to always render slotted title, and removed part="title" from the vaadin-login-overlay-wrapper
  • Renamed part="form" in the overlay wrapper element to form-wrapper, used form for the actual form
  • Removed theme="with-overlay" from the form wrapper as it's now directly slotted into the overlay wrapper

Note, this change means that the component should be used outside any elements with shadow DOM in order for it to work with some password manager extensions. However, in general it should be ok as Flow component uses auto-add logic. The only problematic case is related to embedded web components, that needs further testing.

BTW, browser built-in password managers in Chrome (Brave) and Safari are not affected by shadow DOM and they work fine in current vaadin.com example which renders plain vaadin-login-form in embedded component's shadow DOM.

Type of change

  • Breaking change

Note

Flow components branch: https://github.com/vaadin/flow-components/compare/proto/login-overlay-popover

@web-padawan web-padawan force-pushed the refactor/native-popover-login branch 5 times, most recently from 30baab6 to a320394 Compare July 24, 2025 13:49
@web-padawan web-padawan marked this pull request as ready for review July 24, 2025 13:49
@web-padawan web-padawan requested a review from sissbruecker July 24, 2025 13:49
@web-padawan web-padawan force-pushed the refactor/native-popover-login branch from a320394 to c1aaeb4 Compare July 24, 2025 13:52
@web-padawan web-padawan requested a review from sissbruecker July 28, 2025 10:34
@sonarqubecloud
Copy link

@web-padawan web-padawan merged commit 0104125 into main Jul 28, 2025
10 checks passed
@web-padawan web-padawan deleted the refactor/native-popover-login branch July 28, 2025 10:56
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 25.0.0-beta2.

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.

[login] Update login-overlay to native popover and render title, form etc in slots

3 participants