1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-06 02:23:44 +00:00

[SG-980] Organization name badge color doesn't match their organization avatar color from Vault (#4451)

* fix: adjusted color source priority to deprio  ids

* fix: CAPS LOCK ON

* undo: lets not touch base components :)

* fix: don't use id since orgs rely on names
This commit is contained in:
Brandon Maharaj
2023-01-23 13:41:35 -05:00
committed by GitHub
parent 4d9029b77b
commit e2c25c6aad
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ export class OrganizationNameBadgeComponent implements OnInit {
this.color = Utils.stringToColor(userName.toUpperCase());
}
} else {
this.color = Utils.stringToColor(this.organizationName);
this.color = Utils.stringToColor(this.organizationName.toUpperCase());
}
this.textColor = Utils.pickTextColorBasedOnBgColor(this.color, 135, true) + "!important";
}