Skip to content

bug: alert text does not break words when wrapping #28406

Description

@csaar95

Prerequisites

Ionic Framework Version

v7.x

Current Behavior

Long options aren't truncated and the "selected" icon is moved out to the left side.

Bildschirmfoto 2023-10-25 um 10 34 10
Bildschirmfoto 2023-10-25 um 10 33 55

Expected Behavior

Long options should truncate (or wrap).

Steps to Reproduce

<IonItem>
  <IonSelect
    label="Favorite fruit"
    labelPlacement="floating"
    value="banana"
  >
    <IonSelectOption value="apple">Apple</IonSelectOption>
    <IonSelectOption value="banana">Babababananaaaaaaaaaaa</IonSelectOption>
    <IonSelectOption value="orange">Orange</IonSelectOption>
  </IonSelect>
</IonItem>

Code Reproduction URL

No response

Ionic Info

Ionic:

Ionic CLI : 7.1.1 (/opt/homebrew/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/react 7.5.1

Capacitor:

Capacitor CLI : 5.5.0
@capacitor/android : 5.5.0
@capacitor/core : 5.5.0
@capacitor/ios : not installed

Utility:

cordova-res : not installed globally
native-run : 1.7.4

System:

NodeJS : v18.18.2 (/opt/homebrew/Cellar/node@18/18.18.2/bin/node)
npm : 9.8.1
OS : macOS Unknown

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions