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

Upsell: don't render empty div if no actions and no children #1714

Merged
merged 2 commits into from
Sep 28, 2021

Conversation

dangerismycat
Copy link
Contributor

If Upsell is used with no children and no actions, it will render with an extra div that can add unneeded whitespace at certain widths. This PR adds logic to ensure that div is only shown when it's needed.

Before
Screen Shot 2021-09-28 at 11 47 42 AM
Screen Shot 2021-09-28 at 11 47 58 AM

After
Screen Shot 2021-09-28 at 11 49 02 AM

@dangerismycat dangerismycat added the patch release Patch release label Sep 28, 2021
@netlify
Copy link

netlify bot commented Sep 28, 2021

✔️ Deploy Preview for gestalt ready!

🔨 Explore the source changes: 33ef28f

🔍 Inspect the deploy log: https://app.netlify.com/sites/gestalt/deploys/61536680e5acd6000716687a

😎 Browse the preview: https://deploy-preview-1714--gestalt.netlify.app

@dangerismycat dangerismycat marked this pull request as ready for review September 28, 2021 20:15
@dangerismycat dangerismycat requested a review from a team as a code owner September 28, 2021 20:15
@dangerismycat dangerismycat merged commit d24f43e into pinterest:master Sep 28, 2021
@dangerismycat dangerismycat deleted the upsell-bugfix branch September 28, 2021 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release Patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant