Skip to content

Avatar background is grey by default, which is always visible #12055

@hanastasov

Description

@hanastasov
  1. Add an image avatar
  2. The image avatar always has grey background applied. This grey background because is not only visible for image avatars with transparent background, it's also visible when the avatar has a specific background color set as background (for example, if you set red as yellow, you'll see the result of red + a shade of gray:
    <igx-avatar
      **src="https://svgshare.com/i/mYB.svg"
      bgColor="yellow"**
      [roundShape]="true"
      size="medium"
    ></igx-avatar>

Result

image

Metadata

Metadata

Assignees

Labels

❓ question✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.avatarAvatar componentstyling

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions