From 3eeafc098af445f8e9e0c4bdf423b6260df2c7a7 Mon Sep 17 00:00:00 2001 From: rr-bw <102181210+rr-bw@users.noreply.github.com> Date: Tue, 14 May 2024 13:28:41 -0700 Subject: [PATCH] Update AnonLayout BG Colors (#9180) * update bg color * add tw breakpoint for primary content bg --- .../src/app/auth/anon-layout-wrapper.component.ts | 12 ++---------- .../angular/anon-layout/anon-layout.component.html | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/apps/web/src/app/auth/anon-layout-wrapper.component.ts b/apps/web/src/app/auth/anon-layout-wrapper.component.ts index e39a8e11a99..c89b05a3c65 100644 --- a/apps/web/src/app/auth/anon-layout-wrapper.component.ts +++ b/apps/web/src/app/auth/anon-layout-wrapper.component.ts @@ -1,4 +1,4 @@ -import { Component, OnDestroy, OnInit } from "@angular/core"; +import { Component } from "@angular/core"; import { ActivatedRoute, RouterModule } from "@angular/router"; import { AnonLayoutComponent } from "@bitwarden/auth/angular"; @@ -10,7 +10,7 @@ import { Icon } from "@bitwarden/components"; templateUrl: "anon-layout-wrapper.component.html", imports: [AnonLayoutComponent, RouterModule], }) -export class AnonLayoutWrapperComponent implements OnInit, OnDestroy { +export class AnonLayoutWrapperComponent { protected pageTitle: string; protected pageSubtitle: string; protected pageIcon: Icon; @@ -23,12 +23,4 @@ export class AnonLayoutWrapperComponent implements OnInit, OnDestroy { this.pageSubtitle = this.i18nService.t(this.route.snapshot.firstChild.data["pageSubtitle"]); this.pageIcon = this.route.snapshot.firstChild.data["pageIcon"]; // don't translate } - - ngOnInit() { - document.body.classList.add("layout_frontend"); - } - - ngOnDestroy() { - document.body.classList.remove("layout_frontend"); - } } diff --git a/libs/auth/src/angular/anon-layout/anon-layout.component.html b/libs/auth/src/angular/anon-layout/anon-layout.component.html index 5c3e7473316..6483048a238 100644 --- a/libs/auth/src/angular/anon-layout/anon-layout.component.html +++ b/libs/auth/src/angular/anon-layout/anon-layout.component.html @@ -1,5 +1,5 @@
@@ -15,7 +15,7 @@