From 540b784fb9d3dec8aa9be19b306a790269c46bec Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Date: Thu, 23 Nov 2023 16:24:21 -0600 Subject: [PATCH] Few last fixes --- src/app/layout/header/header.component.ts | 2 +- .../components/register2.scss-theme.scss | 1 + .../register2.component.scss.theme.scss | 17 +++++++++++++++++ .../pages/register/register2.component.ts | 1 + 4 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 src/app/register2/pages/register/register2.component.scss.theme.scss diff --git a/src/app/layout/header/header.component.ts b/src/app/layout/header/header.component.ts index e178339add..84829e1999 100644 --- a/src/app/layout/header/header.component.ts +++ b/src/app/layout/header/header.component.ts @@ -77,7 +77,7 @@ export class HeaderComponent implements OnInit { path === `/${ApplicationRoutes.selfService}` || path === `/${ApplicationRoutes.inbox}` || path === `/${ApplicationRoutes.developerTools}` || - path === `/${ApplicationRoutes.register}` + path.indexOf( `/${ApplicationRoutes.register}`) !== -1 }) } diff --git a/src/app/register2/components/register2.scss-theme.scss b/src/app/register2/components/register2.scss-theme.scss index 7f860f7666..b44e92e40e 100644 --- a/src/app/register2/components/register2.scss-theme.scss +++ b/src/app/register2/components/register2.scss-theme.scss @@ -71,6 +71,7 @@ } :host { + ::ng-deep { .container .mat-horizontal-content-container, .container { diff --git a/src/app/register2/pages/register/register2.component.scss.theme.scss b/src/app/register2/pages/register/register2.component.scss.theme.scss new file mode 100644 index 0000000000..38db9d095b --- /dev/null +++ b/src/app/register2/pages/register/register2.component.scss.theme.scss @@ -0,0 +1,17 @@ +@use '@angular/material' as mat; +@import 'src/assets/scss/material.orcid-theme.scss'; + +@mixin theme($theme) { + $primary: map-get($theme, primary); + $accent: map-get($theme, accent); + $warn: map-get($theme, accent); + $foreground: map-get($theme, foreground); + $background: map-get($theme, background); + + :host { + + background-color: map-get($background, 'ui-background-lightest'); + } + + } +@include theme($orcid-app-theme); diff --git a/src/app/register2/pages/register/register2.component.ts b/src/app/register2/pages/register/register2.component.ts index 61abcc3223..dd3cfe5a12 100644 --- a/src/app/register2/pages/register/register2.component.ts +++ b/src/app/register2/pages/register/register2.component.ts @@ -38,6 +38,7 @@ import { ReactivationLocal } from '../../../types/reactivation.local' templateUrl: './register2.component.html', styleUrls: [ './register2.component.scss', + './register2.component.scss.theme.scss', '../../components/register2.scss-theme.scss', '../../components/register2.style.scss', ],