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

Add Logo Group Object #1415

Merged
merged 12 commits into from
Jul 21, 2021
Merged

Add Logo Group Object #1415

merged 12 commits into from
Jul 21, 2021

Conversation

dromo77
Copy link
Contributor

@dromo77 dromo77 commented Jul 19, 2021

Overview

This PR adds a new object called Logo Group for displaying a group of logos together.

Screenshots

Screen Shot 2021-07-19 at 12 37 11 PM

Testing

  1. Deploy Preview

@changeset-bot
Copy link

changeset-bot bot commented Jul 19, 2021

🦋 Changeset detected

Latest commit: 71b03a6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudfour/patterns Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

src/tokens/size/sizing.js Outdated Show resolved Hide resolved
src/objects/logo-group/logo-group.scss Outdated Show resolved Hide resolved
src/objects/logo-group/logo-group.scss Outdated Show resolved Hide resolved
src/objects/logo-group/logo-group.twig Outdated Show resolved Hide resolved
src/objects/logo-group/logo-group.twig Outdated Show resolved Hide resolved
dromo77 and others added 2 commits July 21, 2021 08:54
Co-authored-by: Gerardo Rodriguez <[email protected]>
Co-authored-by: Gerardo Rodriguez <[email protected]>
Copy link
Member

@tylersticka tylersticka left a comment

Choose a reason for hiding this comment

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

Looks good, second-guessing an earlier piece of feedback I gave (see comment inline)

display: flex;
flex-wrap: wrap;
justify-content: center;
margin: (-1 * ms.step(3));
Copy link
Member

Choose a reason for hiding this comment

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

This addresses my earlier feedback, but I notice now that this component needs a lot of padding to avoid horizontal scrollbars. Maybe it makes sense to add the padding back to the parent element (instead of requiring utilities), we should just make sure to include adequate comments explaining why... for example, "we add generous padding to balance out the whitespace differentiating brands" or something to that effect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the negative margin, curious what you think of it now?

Copy link
Member

Choose a reason for hiding this comment

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

@dromo77 Did you push that change? I still see the negative margin.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No 😆 should be there now.

@dromo77 dromo77 requested a review from tylersticka July 21, 2021 17:00
Comment on lines 4 to 8
/**
* Because there is generous spacing between the logos, we added a lot of white
* space around Logo Group to help balance the pattern visually. Including the
* spacing as part of the pattern means we don't need to rely on utilities.
*/
Copy link
Member

Choose a reason for hiding this comment

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

This comment feels a little odd since there isn't any padding around the logo group. Maybe it should be rewritten and put closer to the items themselves (which have margin)?

}

.o-logo-group > * {
margin: ms.step(3);
Copy link
Member

Choose a reason for hiding this comment

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

Should this be a design token? Maybe size.spacing.gap.logo_group?

@dromo77 dromo77 requested a review from tylersticka July 21, 2021 17:35
@dromo77 dromo77 merged commit 3c102fa into v-next Jul 21, 2021
@dromo77 dromo77 deleted the logo-cloud branch July 21, 2021 17:43
@github-actions github-actions bot mentioned this pull request Jul 21, 2021
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.

Client logo cloud pattern
4 participants