1

ion-selects in my form don't show full text of its ion-option

enter image description here

enter image description here

Fomare
  • 31
  • 1
  • 4

2 Answers2

8

Try this:

CSS

.myCustomSelect{
    max-width: 100% !important;
   }

HTML

<ion-select class= "myCustomSelect" [(ngModel)]="pedido">
      ....
 </ion-select>

Source: https://github.com/ionic-team/ionic/issues/5427

Yuli
  • 81
  • 1
  • 3
  • You are my hero, Thank You :) – Kamlesh Apr 06 '19 at 12:28
  • could you please suggest me how can i develop my custom theme in ionic 4? I have more than 10 years experience in IT field but newer to ionic. Any help would be highly appreciated. Thanks a lot. – Kamlesh Apr 06 '19 at 12:30
2

I too had the same issue , I solved it by putting this in app.scss file:

ion-label{

white-space:normal !important;

}
alxlives
  • 5,084
  • 4
  • 28
  • 50
  • for ios platform i put this and resolved my problem .alert-radio-label.sc-ion-alert-ios { white-space:normal !important; } – Dinesh Gurjar Mar 05 '20 at 06:28