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

cfpb-layout: Fix breakout card margin #1668

Merged
merged 1 commit into from
Jul 11, 2023
Merged

Conversation

anselmbradford
Copy link
Member

@anselmbradford anselmbradford commented Jul 11, 2023

#1663 fixed a typo in the less syntax, however, this needs to also exclude the breakout cards so that they don't have their top margin overridden with auto.

Also, I noticed that calculations need to be wrapped in parentheses to be applied, otherwise the value ends up as 120px / 2 or whatever, instead of 60px.

Changes

  • cfpb-layout: Fix breakout card margin

Testing

  1. Check the cards page of the PR preview and compare to the live DS site.

PR preview: https://deploy-preview-1668--cfpb-design-system.netlify.app/design-system/patterns/cards

Live site: https://cfpb.github.io/design-system/patterns/cards

Screenshots

Before:
Screen Shot 2023-07-11 at 10 18 47 AM

Screen Shot 2023-07-11 at 10 23 59 AM

After:
Screen Shot 2023-07-11 at 10 18 51 AM

Screen Shot 2023-07-11 at 10 24 06 AM

@anselmbradford anselmbradford added the lerna-changelog/bug lerna label. DO NOT MODIFY label Jul 11, 2023
@netlify
Copy link

netlify bot commented Jul 11, 2023

Thanks for the improvements! Browse a preview of your changes using the link below.

Name Link
🔨 Latest commit d0dbe0e
🔍 Latest deploy log https://app.netlify.com/sites/cfpb-design-system/deploys/64ad671fbd9fa50008e39c66
😎 Deploy Preview https://deploy-preview-1668--cfpb-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lerna-changelog/bug lerna label. DO NOT MODIFY
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants