Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Avatar to new design spec #56

Merged
merged 5 commits into from
Aug 9, 2023
Merged

Conversation

germain-gg
Copy link
Contributor

@germain-gg germain-gg commented Aug 9, 2023

For element-hq/compound#137

Figma link: https://www.figma.com/file/rTaQE2nIUSLav4Tg3nozq7/Compound-Web-Components?type=design&node-id=522-742&mode=design&t=jsFgnt5eA33BaiFu-11

FAO @callumu

🤮 Before

💅 After

Screenshot 2023-08-09 at 07 13 26 Screenshot 2023-08-09 at 10 38 01

It also makes proper use of forwardRef as it is needed in certain implementation, and can now receive all HTML Span attributes as props to give more flexibility, particularly on the accessibility side of things

@germain-gg germain-gg requested a review from a team as a code owner August 9, 2023 06:16
@germain-gg germain-gg requested a review from callumu August 9, 2023 06:28
@callumu
Copy link

callumu commented Aug 9, 2023

Can we make the text weight bold to align it with the designs? The letter also looks large compared to the designs - will add an example below:

Screenshot 2023-08-09 at 10 01 15

@germain-gg
Copy link
Contributor Author

@callumu thank you for the review!

I have update the font weight, and also the font size. From all the examples i could see, the font size is equal to 56.25% of the avatar size. And i've capped the font size to a max of 60px.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Aug 9, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4948c8b
Status: ✅  Deploy successful!
Preview URL: https://0636d8b5.compound-web.pages.dev
Branch Preview URL: https://germain-gg-avatar-updates.compound-web.pages.dev

View logs

@germain-gg germain-gg merged commit 93d2966 into main Aug 9, 2023
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.

3 participants