We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 338eed4 commit ac044b3Copy full SHA for ac044b3
.changeset/popular-pumas-sin.md
@@ -0,0 +1,5 @@
1
+---
2
+'@shopify/polaris': patch
3
4
+
5
+Ensure Avatar has no background color if an source prop is passed in to allow for transparent images
polaris-react/src/components/Avatar/Avatar.scss
@@ -28,6 +28,10 @@
28
// stylelint-enable
29
background: var(--p-color-avatar-background-experimental);
30
color: var(--p-color-avatar-color-experimental);
31
32
+ &.imageHasLoaded {
33
+ background: transparent;
34
+ }
35
}
36
37
@media (forced-colors: active) {
0 commit comments