-
Notifications
You must be signed in to change notification settings - Fork 30
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
[Fairground 🎡] Avatar Sizing #12938
base: main
Are you sure you want to change the base?
[Fairground 🎡] Avatar Sizing #12938
Conversation
Size Change: +607 B (+0.07%) Total Size: 891 kB
ℹ️ View Unchanged
|
3b67c41
to
56b379e
Compare
Hello 👋! When you're ready to run Chromatic, please apply the You will need to reapply the label each time you want to run Chromatic. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking great, though I would avoid use of the word "fairground" wherever possible in the code. Would much prefer "beta" to reference the new containers
Might be good to have a quick session to go over some of these changes as there's a fair bit of design logic going on here
dotcom-rendering/src/components/Card/components/AvatarContainer.tsx
Outdated
Show resolved
Hide resolved
dotcom-rendering/src/components/Card/components/AvatarContainer.tsx
Outdated
Show resolved
Hide resolved
"This PR is stale because it has been open 30 days with no activity. Unless a comment is added or the “stale” label removed, this will be closed in 3 days" |
7bbe77a
to
18e3574
Compare
c7d86f0
to
8456285
Compare
{ breakpoint: 320, width: 75 }, | ||
{ breakpoint: 740, width: 140 }, | ||
]); | ||
const decideImageWidths = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously, we only requested 2 sizes of avatar. This function follow the pattern of card picture to account for a wider range of image widths based on the image size.
What does this change?
Adds new size options for avatars that are included in a fairground container. The current sizing exists alongside this.
It also specifies that opinion cards in fairground containers that are horizontally aligned on desktop and bottom aligned on mobile should render on the right and bottom accordingly.
The fairground container cards with an avatar also remove the top margin.
Why?
This is part of the fairground opinion redesign.
Screenshots