Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Form|FormItem|Label]: Form labels with line breaks appear left-aligned

Open Beginner friendly
#14,116 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
design, frontend

Research direction

Start with the Form, FormItem, and Label components and reproduce the issue using the linked isolated example in Chrome. Compare single-line and line-broken labels against the expected right-aligned examples, then verify that multi-line labels remain right-aligned without changing the existing single-line layout.

Written by the indexing model from the issue text.

Description

bug Low Prio TOPIC Core
Bug Description

In form layouts where the label and data/input appear on the same line, the labels are right-aligned. However, when a label has a line break, it appears left-aligned:

Image
Affected Component

Form, FormItem, Label

Expected Behaviour

The multi-line labels should appear right-aligned. Example. Another example.

Image Image
Isolated Example

https://ui5.github.io/webcomponents/play/#eNrtVltv2jAU_ituntqqIUV0U0Up2ka7CYleNDrtIl5MfAB3jh3FBoqq_vcd2wkLLdCo3cMeKpDAx-d837navg-4ZHBXm5hEBM37QNIEgmZZeBDEShqQBsWtnTAkqaCLcaamkoUjJRgJw_ZAtnbOrjo3P6_PiTWyAvtLBJXj00EAchCg7PGnNQHKUE7w29JmIcAu9ptSmd0mgxGXwPbIPcoY15a2SaSScIKCB2vvuNz-SGUxsDBWQmUhZbdTbVZ0SSsq8N_o3uj-W7pWAoaSeEIzDQYH59vN5_DYzU6-ZecT5TMO81RlZhCQfDpROOfMTE4ZzHgMoVscEC654VSEOqYCTuu1wxzMcIOcfZqkAlqRX-FARvlE4t-hYgviXEPoIY1_5zPvImmSGc12w1DT9NNyq2N39k4mwMcTDPLo8DC9y-nWnBshyOLsmPJ3KMqSJZ1zvpkD4CEyBIwgpRK3-g1y0SC9BvnRa-TghXnIDSTWeTMwTugMbQXQziauK1OE00LZbLnNjk-elU7U3MUm25eo2oqWAGVELtOpwdjF1Lr5FRi5Vlwa0jcqA40wnJW52h7GWTkYv15xVubQWyJwoDFmzmSL3lAgjY8pF_VBVAmr47U3RKZBQGxWqDwujWPQmg8FhDauMIPRI29ymBxIpYYj20ds9IwKTj1fLl2jSTwzsPYXyBIqF88ZtM_lGO8VtkbPizzgq_PNzWqycV2xgX51r0lHMYg6aLO1k5ZMHrlorKN6fXPmC7-eNNfaHr2g2J9qLl-A97Lk-WzNdcVcfYdhH4EqzRueNrVYJcWY5Rz_csiwZwFMuexeUjGYvlN-vuJl0HKh8BzZWKeSa9srX2K4nCZDyFZ56u_rxy8ieU07MBAVU3gGgs8gWxDKGB6pulJjXMI873EXfMFWIQTyV-RXjM_8i3TDteWvLHwUxBlPDTGL1DqQKDYVYCPJYrvEWtZutfPAK7rL1V6p_nKNilfy1osxeDgooEpv80JSfphH-2WUCWdA9qOB5Il9JJBBUItK23qaWrFzEF8hT22dByv2HzBJ0RyGOH0pvl2k0ZgobaLPmLcCp5JyF9Ne2aBnq15Zu2vLXFm77y6JyupX7pop1G1pHv4ARRarMw

Steps to Reproduce
  1. Observe the "ZIP Code/City" and "Delivery address" labels.
Log Output, Stack Trace or Screenshots

No response

Priority

None

UI5 Web Components Version

2.27.2

Browser

Chrome

Operating System

Windows 11

Additional Context

No response

Organization

No response

Declaration
  • I’m not disclosing any internal or sensitive information.
Dominant language
TypeScript
Stars
1.8k
Forks
288
Avg merge
2d 15h
Merged PRs (30d)
45

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UI5/webcomponents

All issues in UI5/webcomponents

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.