IONIC4 : how to use cssClass for Loading , it is doesn't work

后端 未结 3 1794
日久生厌
日久生厌 2020-12-22 05:52

I want to change ion-loading style using cssClass ,my code as follow:

loading.page.ts :

@Component({
    selector: \'app-loading\',
    templateUrl:          


        
3条回答
  •  时光说笑
    2020-12-22 06:29

    theme/variables.scss

    ion-loading.custom-loading {
      .loading-wrapper {
        background: transparent;
        box-shadow: none;
      }
    }
    

    I don't know why, but it works in Ionic4.

    If you write in loading.page.scss, it doesn't work.

提交回复
热议问题