Ionic 4 alert controller custom font

Hi guys, is there a way to modify the css class of alert controller?

I’ve tried this solution but it seems not working.

Here’s my code

    const alert = await this.alert_controller.create({
      header: 'Account Type',
      message: 'Select asdasdas',
      cssClass: 'alert_radio',

.alert_radio {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

This is the screenshot, the changes made doesn’t take effect.

My goal is to at least change the font of text inside the alert controller. Anyone know how to modify it? Thanks in advance.

Please Move the CSS to global.scss
.alert_radio {
font-family: ‘Segoe UI’, Tahoma, Geneva, Verdana, sans-serif;

1 Like

Thank you :slight_smile: it works :slight_smile:

1 Like