Closed XuTheBunny closed 5 years ago
UIKit Storybook for Review
Built with commit 37ea9b9b798a0a0c4a85e32606350fc8afb31ab1
Looks good so far. There are two other things I think we need to consider:
How will we integrate the dropdown with the Avatar? Maybe the dropdown in the nav will contain the avatar component?
We also have the potential for little icon chips like in the design for the data tracker. Maybe we should have a size variant of it?
@XuTheBunny doesn't look the size
is working properly in the Percy tests
you can tests this inside storybook by removing the show-in-tests hidden
classes from that section in the story and just add them back before committing
Motivation
A circular image that pulls a user's gravatar image.
Use Cases
Kids First Data Tracker
Kids First Portal + 3. Kids First website
API changes
No API changes are made on this component.
Implementation Notes
Props with different values:
imgUrl
imgUrl
is valid: Display user gravatarimgUrl
is not valid but no found specific image: Display default gravatarimgUrl
is not valid: Display alternative textimgUrl
: Display image.userName
: Display name initialuserName
: Display three dotsSize: range: 20 - 200, default: 40
Rendering and Storybook location
Functional Tests
Test avatar component with/without userName, imgUrl, and different size values.
Closes #77