-
Notifications
You must be signed in to change notification settings - Fork 87
refactor!: update login-form to use shadow DOM and slotted form #9792
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
Conversation
| return css` | ||
| :host { | ||
| display: block; | ||
| max-width: max-content; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this to make centering easier by setting margin: 0 auto on the form element.
This seems like a better option than using display: inline-block to me.
|
|
This ticket/PR has been released with Vaadin 25.0.0-beta2. |



Description
Fixes #9694
Fixes #9793
vaadin-login-formto use shadow DOM and initialize slotted elements using controllers / Lit templateexportpartson the login-form-wrapper to make part elements stylable viavaadin-login-form::part()displaytoblockon the form wrapper as usinginline-blockcauses extra whitespace to be showninline-block<section part="form">and changedvaadin-login-form-wrapperto userole="region"part="form"will therefore be set on the login form wrapper itself now and still be available for stylingType of change
Note
Tested in screen readers and announcements look good, "Log In region" is announced:
VoiceOver
NVDA
JAWS