You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our form layout allows to place labels on the side of input fields. Setting a required indicator might lead to a case, where the label container wraps its content, placing the label in the first line and the required indicator in the second one.
Expected outcome
The div containing the label text and the required indicator should not break lines / wrap content. Instead the label text should be allowed to wrap.
The above shown sample applied the following changes to the <div part="label"> inside the form field's shadow dom (plus adding some gibberish to the <label>.
Adding white-space: nowrap doesn't seem to solve the problem as in case of using the hardcoded item label with, the required indicator would still wrap (this is what is done in the linked example: --vaadin-form-item-label-width: 60px).
We could add display: flex on the label part but it will be still possible to overflow e.g. like this:
Description
Our form layout allows to place labels on the side of input fields. Setting a required indicator might lead to a case, where the label container wraps its content, placing the label in the first line and the required indicator in the second one.
Expected outcome
The
div
containing the label text and the required indicator should not break lines / wrap content. Instead the label text should be allowed to wrap.The above shown sample applied the following changes to the
<div part="label">
inside the form field's shadow dom (plus adding some gibberish to the<label>
.Minimal reproducible example
Steps to reproduce
See minimal reproducible example.
Environment
Vaadin version(s): 24.4.x? (depends on the Vaadin version used in the docs)
OS: --
Browsers
Chrome
The text was updated successfully, but these errors were encountered: