-
Notifications
You must be signed in to change notification settings - Fork 86
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(FormLayout): add FormItem and labelsAside support to autoResponsive mode #8729
base: main
Are you sure you want to change the base?
Conversation
This PR introduces an autoResponsive mode to FormLayout. In this mode, the component automatically creates and then dynamically adjusts columns based on the provided columnWidth, maxColumns, and the available space in the container.
4945b14
to
1ec9d8d
Compare
wip improve dev page example minimize diff update material screenshots
00b3304
to
4547b11
Compare
…' into feat/auto-responsive-form-layout-labels-aside
…' into feat/auto-responsive-form-layout-labels-aside
…form-layout-labels-aside
@@ -1,7 +1,7 @@ | |||
/* @web/test-runner snapshot v1 */ | |||
export const snapshots = {}; | |||
|
|||
snapshots["vaadin-form-layout auto-responsive basic host default"] = | |||
snapshots["vaadin-form-layout auto-responsive basic host default"] = |
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.
I think these whitespace changes should not be needed. Please consider removing form-layout.test.snap.js
file and running yarn update:snapshots --group form-layout
again, then the file will be regenerated correctly.
This would rearrange some snapshots to match the order of the newly added tests.
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.
Thanks, done.
|
Description
<vaadin-form-item>
elements with labels positioned above inputs by default when used with autoResponsive (which is opposite to its default behavior with responsiveSteps).labelsAside
property, which allows<vaadin-form-item>
labels to be displayed next to inputs when there is enough space in the container.Fixes #8687
Type of change