Skip to content

ion-select with long text options doesn't render properly on ios and md #17269

Description

@plchampigny

Bug Report

Ionic version:
4.0.0

Current behavior:
Long ion-select-option won't be displayed properly in the pop-up compared to ionic 3

Expected behavior:
Long ion-select-option should properly size the item and allow the user to see all the text

Steps to reproduce:

  1. Create ionic 4 project
  2. Add with 2 options: 1 with very long text and 1 with short text
  3. Open the ion select. The first element should display only 30-40 characters and hyphens

ios example
image

md example
image

if you do the same with an ionic 3 project, this should show properly both of the lines:

ios example
image

md example
image

Other information:

Setting white-space: normal; on the alert-radio-label does help a bit to show longer text but still it is maximized to 2 lines.
Ionic info:

Ionic:
   ionic (Ionic CLI)             : 4.9.0 (C:\Users\Cactus\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework               : @ionic/angular 4.0.0
   @angular-devkit/build-angular : 0.12.3
   @angular-devkit/schematics    : 7.2.3
   @angular/cli                  : 7.2.3
   @ionic/angular-toolkit        : 1.2.2

Cordova:

   cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms     : none
   Cordova Plugins       : no whitelisted plugins (0 plugins total)

System:

   NodeJS : v8.12.0 (C:\Program Files\nodejs\node.exe)
   npm    : 6.4.1
   OS     : Windows 10

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