equinor / equinor/fusion-react-components

PersonAvatar weird border when azureId is invalid

Open
#1,106 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
9
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
52

Description

**Describe the bug**
Noticed that personavatar shows an odd border when the azureid is invalid. Don't know if this is intended or if it should be allowed to pass in an invalid id.

**To Reproduce**
```TypeScript

```

**Expected behavior**
A placeholder icon similiar to the old fusion-component version:
![image](https://github.com/equinor/fusion-react-components/assets/73334350/b2bc3858-5e86-475f-8215-3420452a6504)

**Screenshots**
size={AvatarSize.Small}
![image](https://github.com/equinor/fusion-react-components/assets/73334350/4567b6e8-529e-46a0-ac68-0a40ffada630)
size={AvatarSize.Large}
![image](https://github.com/equinor/fusion-react-components/assets/73334350/ce38b3a8-20b6-42b4-be69-37f836937ea2)
size not set
![image](https://github.com/equinor/fusion-react-components/assets/73334350/de454032-f1dd-4d88-9273-1f84ef46fd03)

**Desktop (please complete the following information):**
- OS: Windows
- Browser Edge, Chrome and Firefox

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.