1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-06 00:13:28 +00:00

[PM-25603] Use angular template for avatar (#15978)

We should be able to simplify the angular component by using svg element directly.
This commit is contained in:
Oscar Hinton
2025-10-03 11:51:25 +02:00
committed by GitHub
parent cb20889a94
commit a1e226b598
4 changed files with 63 additions and 86 deletions

View File

@@ -12,7 +12,6 @@
[color]="currentAccount.avatarColor"
size="small"
aria-hidden="true"
class="[&>img]:tw-block"
></bit-avatar>
</button>
<ng-template #defaultButton>

View File

@@ -137,3 +137,8 @@ body.body-full {
margin-bottom: 0;
}
}
/** Temporary fix for avatar, will not be required once we migrate to tailwind preflight **/
bit-avatar svg {
display: block;
}