Skip to content

Commit 81d7815

Browse files
authored
fix(ui5-avatar): correct background when image slot is used (#4117)
1 parent 6ab905c commit 81d7815

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/main/src/themes/Avatar.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@
179179
background-color: var(--ui5-avatar-placeholder);
180180
}
181181

182+
:host([_has-image]) {
183+
background-color: transparent;
184+
}
185+
182186
:host([image-fit-type="Contain"]) .ui5-avatar-img {
183187
background-size: contain;
184188
}

0 commit comments

Comments
 (0)