From 470dbf2cba5d886460961b5806e7832afe68fe45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Tue, 7 May 2019 11:33:15 +0200 Subject: [PATCH] MOBILE-2964 styles: Improve alert styling --- src/app/app.scss | 19 +++++++++++++++++++ src/providers/utils/dom.ts | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/src/app/app.scss b/src/app/app.scss index 2782088e0..7037530ac 100644 --- a/src/app/app.scss +++ b/src/app/app.scss @@ -595,6 +595,25 @@ ion-app.app-root { .alert-message { overflow-y: auto; } + ion-alert.core-nohead { + + &.alert-md .alert-message { + padding-top: $alert-md-message-padding-bottom; + } + &.alert-ios .alert-message { + padding-top: $alert-ios-message-padding-bottom; + } + &.alert-wp .alert-message { + padding-top: $alert-wp-message-padding-bottom; + } + .alert-head { + display: none; + } + } + + ion-alert .alert-checkbox-group { + border: 0; + } ion-toast.core-toast-success .toast-wrapper{ background: $green-dark; diff --git a/src/providers/utils/dom.ts b/src/providers/utils/dom.ts index fe2b67500..e8e22ed1a 100644 --- a/src/providers/utils/dom.ts +++ b/src/providers/utils/dom.ts @@ -990,7 +990,7 @@ export class CoreDomUtilsProvider { * @param {string} [title] Title of the modal. * @param {string} [okText] Text of the OK button. * @param {string} [cancelText] Text of the Cancel button. - * @param {any} [options] More options. See https://ionicframework.com/docs/api/components/alert/AlertController/ + * @param {any} [options] More options. See https://ionicframework.com/docs/v3/api/components/alert/AlertController/ * @return {Promise} Promise resolved if the user confirms and rejected with a canceled error if he cancels. */ showConfirm(message: string, title?: string, okText?: string, cancelText?: string, options?: any): Promise {