1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-21 03:43:58 +00:00

fix typo and hover text color

This commit is contained in:
Vicki League
2026-02-13 14:53:06 -05:00
parent 6a0b1c55a9
commit d5472528d0
2 changed files with 4 additions and 4 deletions

View File

@@ -242,11 +242,11 @@ export class AvatarComponent {
return "tw-fill-fg-disabled";
}
const customBg = this.customBackgroundColor();
let textColor = "white";
const color = this.color();
if (customBg) {
textColor = Utils.pickTextColorBasedOnBgColor(customBg, 135, true);
if (this.usingCustomColor() && color) {
textColor = Utils.pickTextColorBasedOnBgColor(color, 135, true);
}
return textColor === "white" ? "tw-fill-fg-white" : "tw-fill-fg-black";

View File

@@ -113,7 +113,7 @@ export const ContentSlots: Story = {
<bit-avatar
slot="start"
text="Foo"
siez="large"
size="large"
></bit-avatar>
foo&#64;bitwarden.com
<ng-container slot="secondary">