From 1cf77c5c798de66e64390adb853377feb4819678 Mon Sep 17 00:00:00 2001 From: andrej romanov <50377758+auumgn@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:57:13 +0200 Subject: [PATCH] New alert tweaks (#2425) * replace more sign in alerts * replace deactivation alert --------- Co-authored-by: Angel Montenegro --- ...settings-actions-deactivate.component.html | 26 +--- ...settings-actions-deactivate.component.scss | 12 +- ...tions-deactivate.component.scss-theme.scss | 14 -- .../print-errors/print-errors.component.html | 121 ++++++++---------- .../print-errors/print-errors.component.scss | 4 +- 5 files changed, 67 insertions(+), 110 deletions(-) diff --git a/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.html b/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.html index b02f7b3ba7..d7a7e9722d 100644 --- a/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.html +++ b/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.html @@ -98,24 +98,12 @@ Deactivate ORCID account -
-
- info + +
+ + An account deactivation email has been sent to + + {{ deactivatedEmail }}
-
-
- - An account deactivation email has been sent to - - {{ deactivatedEmail }} -
-
-
+ diff --git a/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss b/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss index 56aab5eaab..ecab917d0a 100644 --- a/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss +++ b/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss @@ -10,15 +10,7 @@ ul { margin-top: 16px; } -.info { - padding: 16px; +app-alert-message { margin-top: 16px; - margin-bottom: 16px; - border: solid 2px; - border-radius: 4px; - display: flex; - - p { - margin: 0; - } + margin-bottom: 8px; } diff --git a/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss-theme.scss b/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss-theme.scss index 929c0caa28..278b4f332f 100644 --- a/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss-theme.scss +++ b/src/app/account-settings/components/settings-actions-deactivate/settings-actions-deactivate.component.scss-theme.scss @@ -7,20 +7,6 @@ $warn: map-get($theme, accent); $foreground: map-get($theme, foreground); $background: map-get($theme, background); - - .info { - border-color: mat.get-color-from-palette( - $foreground, - 'state-notice-dark' - ) !important; - - mat-icon { - color: mat.get-color-from-palette( - $foreground, - 'state-notice-dark' - ) !important; - } - } } @include settings-defaults-email-frequency($orcid-app-theme); diff --git a/src/app/sign-in/components/errors/print-errors/print-errors.component.html b/src/app/sign-in/components/errors/print-errors/print-errors.component.html index acd8979050..665f7b8e42 100644 --- a/src/app/sign-in/components/errors/print-errors/print-errors.component.html +++ b/src/app/sign-in/components/errors/print-errors/print-errors.component.html @@ -1,73 +1,64 @@ -
-
- error -
-
+ +
-

- - - The email address - - - The Orcid iD - - {{ email }} - is already associated with + + + The email address + + + The Orcid iD + + {{ email }} + is already associated with + + an unclaimed + + a deactivated + + ORCID record. + + + You cannot sign in to ORCID with this email address until you have + claimed the record. - an unclaimed + + You cannot sign in to ORCID with this iD until you have claimed the + record. + + a deactivated + i18n="@@ngOrcid.signin.needToReactivateAccount" + *ngIf="isEmail" + > + You will need to reactivate the account before you can sign in with + this email address. - ORCID record. - - - You cannot sign in to ORCID with this email address until you have - claimed the record. - - - You cannot sign in to ORCID with this iD until you have claimed - the record. - - - - - You will need to reactivate the account before you can sign in - with this email address. - - - You will need to reactivate the account before you can sign in - with this iD. - - - - - - This ORCID account has been deprecated. The active account is  {{ orcidPrimaryDeprecated }} - -

+ You will need to reactivate the account before you can sign in with + this iD. + + + + + + This ORCID account has been deprecated. The active account is  {{ orcidPrimaryDeprecated }} +
@@ -130,4 +121,4 @@ >
-
+ diff --git a/src/app/sign-in/components/errors/print-errors/print-errors.component.scss b/src/app/sign-in/components/errors/print-errors/print-errors.component.scss index 1f4a6ab3a7..a8a3b34d28 100644 --- a/src/app/sign-in/components/errors/print-errors/print-errors.component.scss +++ b/src/app/sign-in/components/errors/print-errors/print-errors.component.scss @@ -2,6 +2,6 @@ margin: auto; } -.orcid-error { - margin-top: 20px !important; +app-alert-message { + margin-top: 20px; }