Skip to content

Conversation

@emplums
Copy link

@emplums emplums commented Oct 3, 2019

Creates the AvatarStack component

Closes: #563

Implementation Checklist:

  • Handles 2 avatars
  • Handles more than 3 avatars
  • Passing in only one avatar doesn't break
  • Supports wrapping avatar in an anchor tag
  • Supports tooltips
  • Think through a11y of avatars
  • Supports right aligned stacks
  • Tests
  • Documentation
  • Types

@vercel
Copy link

vercel bot commented Oct 3, 2019

This pull request is automatically deployed with Now.
To access deployments, click Details below or on the icon next to each push.

Latest deployment for this branch: https://primer-components-git-avatar-stack.primer.now.sh

@vercel vercel bot temporarily deployed to staging October 3, 2019 20:24 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 20:33 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 20:35 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 20:35 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 20:49 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 20:57 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 20:58 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 21:05 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 21:09 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 21:09 Inactive
@vercel vercel bot temporarily deployed to staging October 3, 2019 21:11 Inactive
| Name | Type | Default | Description |
| :- | :- | :-: | :- |
| alt | String | | Adds accessible alternative text for avatars |
| src | String | | URL for image to be used in avatar |
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Even though these are just native img attributes, I'm listing them here because they are significantly important to be able to render the AvatarStack.Item component

@vercel vercel bot temporarily deployed to staging October 4, 2019 16:07 Inactive
@vercel vercel bot temporarily deployed to staging October 4, 2019 16:54 Inactive
@vercel vercel bot temporarily deployed to staging October 4, 2019 19:17 Inactive
@emplums
Copy link
Author

emplums commented Oct 4, 2019

Primer CSS:
image

Primer Components:
image

@vercel vercel bot temporarily deployed to staging October 4, 2019 19:19 Inactive
@vercel vercel bot temporarily deployed to staging October 4, 2019 19:20 Inactive
@vercel vercel bot temporarily deployed to staging October 4, 2019 19:23 Inactive
@vercel vercel bot temporarily deployed to staging October 4, 2019 22:17 Inactive
@vercel vercel bot temporarily deployed to staging October 4, 2019 22:19 Inactive
@vercel vercel bot temporarily deployed to staging October 7, 2019 17:26 Inactive
@vercel vercel bot temporarily deployed to staging October 7, 2019 17:27 Inactive
@vercel vercel bot temporarily deployed to staging October 7, 2019 18:14 Inactive
@dmarcey dmarcey self-requested a review October 7, 2019 18:17
Copy link
Contributor

@dmarcey dmarcey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🚀

@emplums emplums merged commit b941584 into release-14.4.0 Oct 7, 2019
@emplums emplums deleted the avatar-stack branch October 7, 2019 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants