Text-wrap in alert how


#1

Hi
I m using radio in alert accroding to http://ionicframework.com/docs/v2/components/#alert-radio . It works fine.
But problem is that I have long text in radio item. So I want to text wrap in the items. What is the way to style item for alert ? plz help


#2

it’s not possible right now. Your best bet would be to only display a short amount of text.


#3

You can overwrite the style by adding the following selector to your app.core.scss

// Text wrap for alert radio labels
ion-alert.select-alert.single-select-alert .alert-radio-label {
  white-space: pre-wrap;
}