diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 097bde4..6f44064 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,4 +1,4 @@ -import {Component, OnInit} from '@angular/core'; +import {ChangeDetectorRef, Component, OnInit} from '@angular/core'; import {ActivatedRoute, Router} from "@angular/router"; import {MenuItem} from "./openaireLibrary/sharedComponents/menu"; import {Header} from "./openaireLibrary/sharedComponents/navigationBar.component"; @@ -48,6 +48,7 @@ export class AppComponent extends StakeholderBaseComponent implements OnInit { constructor(protected _route: ActivatedRoute, protected _router: Router, + protected cdr: ChangeDetectorRef, private layoutService: LayoutService, private smoothScroll: SmoothScroll, private configurationService: ConfigurationService, @@ -71,6 +72,7 @@ export class AppComponent extends StakeholderBaseComponent implements OnInit { })); this.subscriptions.push(this.layoutService.rootClass.subscribe(rootClass => { this.rootClass = rootClass; + this.cdr.detectChanges(); })); } diff --git a/src/assets/extend-theme/less/banner.less b/src/assets/extend-theme/less/banner.less index 1c5714c..82412d0 100644 --- a/src/assets/extend-theme/less/banner.less +++ b/src/assets/extend-theme/less/banner.less @@ -1,6 +1,5 @@ @banner-background: @ciel-color; @banner-background-gradient: none; -@banner-mode: dark; @banner-footer-background: #000000; @@ -78,6 +77,3 @@ } } } - -.uk-banner:extend(.uk-light all) when (@banner-mode = light) { -} diff --git a/src/assets/irish-monitor.less b/src/assets/irish-monitor.less index c8f7908..896e9b1 100644 --- a/src/assets/irish-monitor.less +++ b/src/assets/irish-monitor.less @@ -3,7 +3,6 @@ @primary-color: @primary-dark-color; @secondary-color: @irish-global-primary-color; - @banner-mode: light; @banner-background: @global-primary-gradient; } @@ -15,7 +14,6 @@ @primary-light-color: @secondary-color; @primary-dark-color: @primary-color; @ciel-color: #F5EDFC; - @banner-mode: light; @banner-background: @global-primary-gradient; } @@ -27,7 +25,6 @@ @primary-light-color: @secondary-color; @primary-dark-color: @primary-color; @ciel-color: #F7E9F0; - @banner-mode: light; @banner-background: @global-primary-gradient; } @@ -39,7 +36,6 @@ @primary-light-color: @secondary-color; @primary-dark-color: @primary-color; @ciel-color: #F5E9F3; - @banner-mode: light; @banner-background: @global-primary-gradient; } @@ -51,7 +47,6 @@ @primary-light-color: @secondary-color; @primary-dark-color: @primary-color; @ciel-color: #E5F0FA; - @banner-mode: light; @banner-background: @global-primary-gradient; }