From c365c923bddd415747d4f424ac2a163beff77ae2 Mon Sep 17 00:00:00 2001 From: Brandy Carney Date: Tue, 16 Feb 2016 12:59:12 -0500 Subject: [PATCH] fix(alert): add padding under the alert title for iOS when there is no message closes #5299 --- ionic/components/alert/alert.ios.scss | 6 ++++++ ionic/components/alert/alert.md.scss | 4 ++++ ionic/components/alert/alert.scss | 4 ---- ionic/components/alert/alert.ts | 6 +++++- ionic/components/alert/test/basic/index.ts | 2 +- ionic/components/alert/test/basic/main.html | 2 +- 6 files changed, 17 insertions(+), 7 deletions(-) diff --git a/ionic/components/alert/alert.ios.scss b/ionic/components/alert/alert.ios.scss index dae533819f..8bcc25f114 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 4c277017c6..7d6c966c36 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 a1364e3441..b43c4c5d98 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 f6f3eeee09..3f56addfc7 100644 --- a/ionic/components/alert/alert.ts +++ b/ionic/components/alert/alert.ts @@ -248,7 +248,7 @@ export class Alert extends ViewController { '

' + '

' + '' + - '
' + + '
' + '
' + '