How to select text in AlertController

Hello everyone

I just want select text from AlertController to can COPY (ctrl + c)


async res =>{
        await loading.dismiss()
        const alert = await this.alertController.create({
          header: 'Register Code',
          message: `Code : <strong>${res['code']}</strong>`,
          buttons: ['OK'],
          cssClass : 'TextSelectable'
        await alert.present();


    user-select: text;

but I can’t

You need to put the class TextSelectable in global.css, and add !important at the end.

user-select: text!important;