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:
@@ -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";
|
||||
|
||||
@@ -113,7 +113,7 @@ export const ContentSlots: Story = {
|
||||
<bit-avatar
|
||||
slot="start"
|
||||
text="Foo"
|
||||
siez="large"
|
||||
size="large"
|
||||
></bit-avatar>
|
||||
foo@bitwarden.com
|
||||
<ng-container slot="secondary">
|
||||
|
||||
Reference in New Issue
Block a user