Styling ionic 2 toast

前端 未结 9 2027
深忆病人
深忆病人 2021-02-05 07:32

Is there any way to style the text message within an ionic 2 toast?

I have tried this:

9条回答
  •  不知归路
    2021-02-05 08:00

    Ionic 2 provide a very useful way to override their component style you can override the toaster SASS variable in src/theme/variables.scss by adding

    $toast-ios-title-color: #f00 ;
    $toast-md-title-color:#f00;
    

    this will override the default style please refer to this Overriding Ionic Sass variable

提交回复
热议问题