Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Modal: no title, no description dont render extra margin-top #373

Merged
merged 1 commit into from
Aug 24, 2021

Conversation

cy
Copy link
Contributor

@cy cy commented Aug 23, 2021

For https://github.com/mdg-private/studio-ui/pull/4669, a modal with no title and no description does not need the margin-top added to space the content from the title and description.

Before

Screen Shot 2021-08-23 at 4 50 29 PM

After

Screen Shot 2021-08-23 at 4 50 41 PM

📦 Published PR as canary version: 9.6.1-canary.373.9851.0

✨ Test out this PR locally via:

npm install @apollo/space-kit@9.6.1-canary.373.9851.0
# or 
yarn add @apollo/space-kit@9.6.1-canary.373.9851.0

@apollo-cla
Copy link

@cy: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@cy cy requested review from cheapsteak and jgzuke August 23, 2021 20:59
@cy cy added minor Increment the minor version when merged patch Increment the patch version when merged and removed minor Increment the minor version when merged labels Aug 23, 2021
@cy cy force-pushed the cy/modal-optional-margin-top branch from ff881ed to 664ee76 Compare August 23, 2021 21:03
@@ -82,7 +82,7 @@ interface Props {
/**
* Title of the modal
*/
title: React.ReactNode;
title?: React.ReactNode;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

@cheapsteak cheapsteak left a comment

Choose a reason for hiding this comment

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

:shipit:

@cy cy merged commit 4bb2bf7 into main Aug 24, 2021
@cy cy deleted the cy/modal-optional-margin-top branch August 24, 2021 14:57
@apollo-bot2
Copy link
Collaborator

🚀 PR was released in v9.6.1 🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants