KEMBAR78
feat(FormLayout): add FormItem and labelsAside support to autoResponsive mode by vursen · Pull Request #8729 · vaadin/web-components · GitHub
Skip to content

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
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.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

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

See analysis details on SonarQube Cloud

@vursen vursen merged commit f24540f into main Feb 28, 2025
8 of 9 checks passed
@vursen vursen deleted the feat/auto-responsive-form-layout-labels-aside branch February 28, 2025 09:46
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 24.8.0.rc2 and is also targeting the upcoming stable 24.8.0 version.

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.

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

4 participants