Ionic 3 всплывающее изменение цвета - PullRequest
0 голосов
/ 28 октября 2018

Мне нужно изменить css моего всплывающего окна предупреждения, то есть я хочу изменить цвет заголовка на белый, а цвет фона на серый.Может ли кто-нибудь помочь, как это возможно?Спасибо.

Popup color change white to any other

 presentPrompt() {
  let alert = this.alertCtrl.create({
    title: 'Add Your Question',
    inputs: [
      {
        name: 'would',
        placeholder: 'Would You ',
      },
      {
        name: 'rather',
        placeholder: 'Rather'
      }
    ],
    buttons: [
      {
        text: 'Add',
        role: 'add',
        handler: data => {
          this.wouldquestion = data.would;
          this.ratherquestion = data.rather;
          this.afd.list("Questions/").push({
            would:this.wouldquestion,
            rather:this.ratherquestion,
            ratherclick:this.ratherclicks,
            wouldclick:this.wouldclicks
          });
        }
      },
          ]
  });
  alert.present();
}

1 Ответ

0 голосов
/ 03 ноября 2018
try 
add app.scss
.alertCustomCss {
        color: #e37b26; // text color for basic alerts
        button {
            color: white !important;
            background-color: color($colors, primary, base) !important;
        }
        .alert-message {
            color: #e37b26; // text color for confirm alerts
            // background-color: color($colors, primary, base) !important;
        }
        .alert-sub-title {
          color: #e37b26; // text color for confirm alerts
        //   background-color: color($colors, primary, base) !important;
        }
        .alert-wrapper {
            background-color: color($colors, gray, base);
        }
        .alert-input {
            color: black;
        }
      }
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...