fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Slight outline around PeoplePicker image if Persona.initialsColor is also set

Open DianeD opened this issue 10 years ago • 3 comments

Bug Report

  • Package version(s): 0.78.0

Describe the issue:

I'm making two calls to get people and pics for the PeoplePicker.

  1. The first call gets the user collection with users' metadata. Then I set Persona attributes, including Persona.imageInitials and Persona.initialsColor in case there's no profile pic or a problem retrieving it.
  2. The second call gets each user's profile pic. If successful, I set Persona.imageUrl.

Actual behavior:

The profile pic in the picker image renders with ~1 pixel wide outline.

Easy workaround: Set initialsColor = null when I set the imageUrl, or set it if image retrieval fails.

Expected behavior:

No extra work to have a fallback visual display for the image.

DianeD avatar Nov 30 '16 22:11 DianeD

@DianeD Hi, I'll take a look at this.

joschect avatar Dec 26 '16 01:12 joschect

@DianeD It's interesting, the size of the image overlay, and background are the same, yet the background shows through. When I get some cycles I'll have to make the background imageInitials either conditional or have the color be not set when the image loads.

-Jon

joschect avatar Jan 09 '17 19:01 joschect

This is a dupe of #812, and was resolved by #816

MLoughry avatar Jan 18 '17 18:01 MLoughry