MOBILE-2964 styles: Improve alert styling

main
Pau Ferrer Ocaña 2019-05-07 11:33:15 +02:00 committed by Dani Palou
parent be5cbfd728
commit 470dbf2cba
2 changed files with 20 additions and 1 deletions

View File

@ -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;

View File

@ -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<any>} 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<any> {