Modal cssClass


I created an component (HeaderComponent) that was ModalController on a paged I called SelectorPage.
Alright, but creating the Modal like this:

  async presentModal() {
    const modal = await this.modalCtrl.create({
      component: SelectorPage,
      cssClass: 'selector-modal'
    return await modal.present();

I’ve notice the CSS has to be on app.scss, not on myheader.component.scss not even on

Whats the reason for this?
Thank you!

This answers it: