Skip to content

Commit 9f80f89

Browse files
PD-5568 2fa settings panel css tweaks (#2834)
Co-authored-by: andrej romanov <50377758+auumgn@users.noreply.github.com> Co-authored-by: Angel Montenegro <a.montenegro@orcid.org>
1 parent 8a51c6b commit 9f80f89

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

src/app/account-settings/components/settings-security-two-factor-auth/settings-security-two-factor-auth.component.html

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,12 @@
1313
</app-alert-message>
1414
} @if (!twoFactorState) {
1515
<div class="two-factor-panel">
16-
<p
17-
class="two-factor-panel__copy two-factor-panel__copy--intro"
18-
i18n="@@account.addExtraSecurity"
19-
>
16+
<p class="two-factor-panel__copy" i18n="@@account.addExtraSecurity">
2017
Add extra security to your ORCID account by enabling two-factor
2118
authentication (2FA).
2219
</p>
2320
<a
24-
class="two-factor-panel__link"
21+
class="two-factor-panel__link mb-6"
2522
href="https://support.orcid.org/hc/en-us/articles/360006971673"
2623
rel="noopener noreferrer"
2724
target="_blank"

src/app/account-settings/components/settings-security-two-factor-auth/settings-security-two-factor-auth.component.scss

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.two-factor-panel {
77
display: flex;
88
flex-direction: column;
9-
gap: 16px;
9+
gap: 8px;
1010
}
1111

1212
.two-factor-panel--enabled {
@@ -35,10 +35,6 @@
3535
margin: 0;
3636
}
3737

38-
.two-factor-panel__copy--intro {
39-
margin-top: var(--orcid-space-l, 32px);
40-
}
41-
4238
.two-factor-panel__link {
4339
display: inline-flex;
4440
align-items: center;

src/app/account-settings/components/settings-security-two-factor-auth/settings-security-two-factor-auth.component.scss-theme.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
.on {
1616
color: map-get($foreground, 'brand-primary-darkest');
1717
}
18+
19+
.two-factor-panel__enable-button {
20+
color: $orcid-light-primary-text !important;
21+
background: $brand-secondary-dark !important;
22+
}
23+
24+
.two-factor-panel__disable-button {
25+
background-color: $state-warning-darkest !important;
26+
color: white !important;
27+
}
1828
}
1929

2030
@include settings-security-two-factor-auth-theme($orcid-app-theme);

0 commit comments

Comments
 (0)