diff --git a/ionic/components/alert/alert.ios.scss b/ionic/components/alert/alert.ios.scss index dae533819fc..8bcc25f114a 100644 --- a/ionic/components/alert/alert.ios.scss +++ b/ionic/components/alert/alert.ios.scss @@ -94,6 +94,12 @@ ion-alert { text-align: $alert-ios-message-text-align; } +.alert-message { + &:empty { + padding: 0 0 12px 0; + } +} + // iOS Alert Input // -------------------------------------------------- diff --git a/ionic/components/alert/alert.md.scss b/ionic/components/alert/alert.md.scss index 4c277017c68..7d6c966c367 100644 --- a/ionic/components/alert/alert.md.scss +++ b/ionic/components/alert/alert.md.scss @@ -69,6 +69,10 @@ $alert-md-buttons-justify-content: flex-end !default; .alert-message { font-size: $alert-md-message-font-size; + + &:empty { + padding: 0; + } } diff --git a/ionic/components/alert/alert.scss b/ionic/components/alert/alert.scss index a1364e3441d..b43c4c5d989 100644 --- a/ionic/components/alert/alert.scss +++ b/ionic/components/alert/alert.scss @@ -52,10 +52,6 @@ ion-alert { .alert-message { overflow: auto; - - &:empty { - padding: 0; - } } .alert-input { diff --git a/ionic/components/alert/alert.ts b/ionic/components/alert/alert.ts index f6f3eeee097..3f56addfc7f 100644 --- a/ionic/components/alert/alert.ts +++ b/ionic/components/alert/alert.ts @@ -248,7 +248,7 @@ export class Alert extends ViewController { '
' + '' + '' + - '' + + '' + '