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(FormLayout): add FormItem and labelsAside support to autoResponsive mode #8729

Open
wants to merge 26 commits into
base: main
Choose a base branch
from

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Feb 24, 2025

Description

  • Added support for <vaadin-form-item> elements with labels positioned above inputs by default when used with autoResponsive (which is opposite to its default behavior with responsiveSteps).
  • Introduced a 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

  • Feature

@vursen vursen changed the title feat: add FormItem and labelsAside support to autoResponsive mode feat(FormLayout): add FormItem and labelsAside support to autoResponsive mode Feb 24, 2025
@vursen vursen force-pushed the feat/auto-responsive-form-layout-labels-aside branch 2 times, most recently from 4945b14 to 1ec9d8d Compare February 24, 2025 15:16
@vursen vursen force-pushed the feat/auto-responsive-form-layout-labels-aside branch from 00b3304 to 4547b11 Compare February 25, 2025 07:41
@vursen vursen marked this pull request as ready for review February 25, 2025 12:35
@vursen vursen requested a review from DiegoCardoso February 25, 2025 12:48
Base automatically changed from feat/auto-responsive-form-layout to main February 26, 2025 10:23
@@ -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"] =
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
12.2% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[form-layout] Add FormItem and labelsAside support to autoResponsive mode
2 participants