mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-22 11:45:59 +01: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:
parent
4d9029b77b
commit
e2c25c6aad
@ -6,7 +6,7 @@
|
||||
[appA11yTitle]="'organizationPicker' | i18n"
|
||||
[bitMenuTriggerFor]="orgPickerMenu"
|
||||
>
|
||||
<bit-avatar [text]="activeOrganization.name" [id]="activeOrganization.id"></bit-avatar>
|
||||
<bit-avatar [text]="activeOrganization.name"></bit-avatar>
|
||||
<div class="tw-flex">
|
||||
<div class="org-name tw-ml-3">
|
||||
<span>{{ activeOrganization.name }}</span>
|
||||
|
@ -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";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user