-
Notifications
You must be signed in to change notification settings - Fork 85
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
refactor!: use CSS gap for row and column spacing #8638
base: main
Are you sure you want to change the base?
Conversation
fec1f8a
to
fd597be
Compare
fd597be
to
2c660a6
Compare
efe89ef
to
062adbe
Compare
@@ -6,7 +6,7 @@ registerStyles( | |||
css` | |||
:host { | |||
--vaadin-form-layout-column-spacing: var(--lumo-space-l); | |||
--vaadin-form-layout-row-spacing: 0; | |||
--vaadin-form-item-row-spacing: 0; |
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.
This is needed to override the default 1em
value because it's now a part of the var expression: https://github.com/vaadin/web-components/pull/8638/files#diff-6ad2d1beab300f671707a82e473d6377e11eb67525696d17cc7ceb3097b6bd3fR54
|
Description
Refactors the FormLayout component to use CSS gap for defining spacing between rows and columns. The row gap is controlled by
--vaadin-form-layout-row-spacing
, which defaults to 0. The deprecated--vaadin-form-item-row-spacing
still applies as long as--vaadin-form-layout-row-spacing
remains at0
, ensuring backwards compatibility until Vaadin 25 where it will be dropped.Warning
The change is still considered breaking because it can increase the default intrinsic width of dialogs with form layouts. See vaadin/flow-components#2201, #949, and CRUD screenshots in this PR for more insights.
Part of #8583
Type of change