Skip to content

fix(ui5-form-item): fix label-content alignment#13119

Merged
ilhan007 merged 2 commits intomainfrom
fix-form-item-alignment
Feb 23, 2026
Merged

fix(ui5-form-item): fix label-content alignment#13119
ilhan007 merged 2 commits intomainfrom
fix-form-item-alignment

Conversation

@ilhan007
Copy link
Contributor

Summary

Fix vertical alignment issue between form item labels and content introduced in
v2.19.0

Root Cause

In #13009, the CSS variable --ui5-form-item-label-padding was set
unconditionally on :host with asymmetric padding (0.625rem 0.25rem 0 0.25rem).
This padding was intended only for label-span="12" (stacked layout) but was
being applied to all form items.

Fix

Rename the variable to --ui5-form-item-label-padding-internal so it's only used
when the span12 selectors explicitly set --ui5-form-item-label-padding: var(--ui5-form-item-label-padding-internal). This restores the symmetric default
padding (0.125rem 0) from FormItem.css fallback.

Fixes #13118

@ilhan007 ilhan007 requested a review from nnaydenow February 19, 2026 13:46
@ui5-webcomponents-bot
Copy link
Collaborator

ui5-webcomponents-bot commented Feb 19, 2026

🧹 Preview deployment cleaned up: https://pr-13119--ui5-webcomponents.netlify.app

@ilhan007 ilhan007 merged commit bf2b707 into main Feb 23, 2026
14 checks passed
@ilhan007 ilhan007 deleted the fix-form-item-alignment branch February 23, 2026 13:48
@ui5-webcomponents-bot ui5-webcomponents-bot temporarily deployed to preview February 23, 2026 13:48 Inactive
@ilhan007
Copy link
Contributor Author

ilhan007 commented Mar 7, 2026

🎉 This issue has been resolved in version v2.20.0-rc.2 🎉

The release is available on v2.20.0-rc.2

Your semantic-release bot 📦🚀

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.

[ui5-form-item]: After upgrade to 2.19.2 the label and the content are no longer vertically aligned

3 participants