Skip to content

fix(ui5-form): correct layout breakpoints near L/XL boundary#13522

Open
ilhan007 wants to merge 1 commit into
mainfrom
fix/form-layout-breakpoints
Open

fix(ui5-form): correct layout breakpoints near L/XL boundary#13522
ilhan007 wants to merge 1 commit into
mainfrom
fix/form-layout-breakpoints

Conversation

@ilhan007
Copy link
Copy Markdown
Contributor

@ilhan007 ilhan007 commented May 14, 2026

Summary

  • Aligns all container query breakpoints (static CSS and dynamic CSS) with the design spec
  • Fixes a gap at 1439–1440px where neither L nor XL dynamic styles applied, causing the layout to fall back to 1 column

The spec defines these breakpoints:

Size Container Width
S 0 – 599px
M 600 – 1023px
L 1024 – 1439px
XL >= 1440px

Both the static CSS (FormLayout.css, FormItemSpan.css) and dynamically generated CSS (Form.ts) were off by 1px at multiple boundaries. This was most noticeable at the L→XL transition when using L4 XL4 layout, where the dynamic column rule didn't apply at 1439–1440px.

Files changed

  • packages/main/src/Form.ts — dynamic container queries + JSDoc
  • packages/main/src/themes/FormLayout.css — static container queries
  • packages/main/src/themes/FormItemSpan.css — static container queries

Test plan

  • All 24 Form Cypress tests pass
  • Manual test: Form with layout="S1 M2 L4 XL4" shows 4 columns consistently across L and XL boundary

Fixes #13420

@ui5-webcomponents-bot
Copy link
Copy Markdown
Collaborator

ui5-webcomponents-bot commented May 14, 2026

@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview May 14, 2026 12:10 Inactive
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview May 14, 2026 12:19 Inactive
The container query breakpoints in both static CSS and dynamic CSS
did not match the spec (S: 0-599, M: 600-1023, L: 1024-1439, XL: 1440+),
causing a gap at 1439-1440px where the layout fell back incorrectly.

Fixes #13420
@ilhan007 ilhan007 force-pushed the fix/form-layout-breakpoints branch from c51fa6b to b15fa35 Compare May 14, 2026 13:54
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview May 14, 2026 14:01 Inactive
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]: Incorrect layout near L->XL breakpoint

2 participants