Issue Bug Resolved

#110771Badge does not wrap to multiple lines

Josua Vogel 09/24/26, 07:50 updated 10/21/26, 11:00

Description

The badge component does not wrap when longer texts are entered and there isn’t enough space in the frame.

Reviews 2

Files 1

History 47

  1. Riccardo De Contardi commented 09/24/26, 09:21

    Okay, but I think that’s a misuse of the component… a badge should not contain entire phrases, but single numbers / short words or at maximum a couple of words

    https://component.gallery/components/badge/

    Atlassian limits the width of its “Lozenge” component to 200px and truncates the text

  2. Oliver Bartsch changed status New Needs Feedback 10/19/26, 11:50

  3. Oliver Bartsch commented and changed status Needs Feedback Accepted 10/19/26, 12:08

    Hey,

    sorry, missed the screenshot, which already answers my questions.

    The message comes from core, not from the container extension. Since v14.2 (#109366), FormEngine keeps a select field with no selectable items as read-only when debug output is enabled, and adds the hint “No selectable items available. Check TCA, related records and TSconfig.” The hint is rendered by NoSelectableItemsAvailable (EXT:backend/Classes/Form/FieldInformation/NoSelectableItemsAvailable.php) as <span class="badge badge-info">.

    So the global badge styling stays as it is (white-space: nowrap is intended), but this message should either be adjusted or not be a badge at all. I am setting the issue back to “New”.

    Cheers, Oli

  4. Gerrit Code Review pushed patch set 1 for main to change 96878 status Accepted Under Review 10/19/26, 18:01

  5. Gerrit Code Review pushed patch set 1 for 14.3 to change 96959 10/21/26, 06:48

  6. Gerrit Code Review pushed patch set 2 for 14.3 to change 96959 10/21/26, 10:40

  7. Oliver Bartsch commented and changed status Under Review Resolved done 0 % 100 % 10/21/26, 11:00

    Applied in changeset commit:5834b080376988fc717e3cdd0a0834eb3803e97a.