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

fix(modal): add padding to last child only when scrolling is true #5267

Merged
merged 2 commits into from
Feb 4, 2020
Merged

Conversation

abbeyhrt
Copy link
Contributor

@abbeyhrt abbeyhrt commented Feb 4, 2020

Closes #5254
(Ref #4979)

This PR adjusts the padding that is added to the last child in the modal so that it is only applied when hasScrollingContent is true.

Changelog

Changed

  • selector for padding-bottom on last child

Testing / Reviewing

Make sure that no scroll area exists on a Modal when hasScrollingContent is false.

@abbeyhrt abbeyhrt requested a review from a team as a code owner February 4, 2020 18:31
@ghost ghost requested review from asudoh and dakahn February 4, 2020 18:31
@netlify
Copy link

netlify bot commented Feb 4, 2020

Deploy preview for carbon-elements ready!

Built with commit 00b2a52

https://deploy-preview-5267--carbon-elements.netlify.com

@netlify
Copy link

netlify bot commented Feb 4, 2020

Deploy preview for carbon-components-react ready!

Built with commit 00b2a52

https://deploy-preview-5267--carbon-components-react.netlify.com

Copy link
Collaborator

@tw15egan tw15egan left a comment

Choose a reason for hiding this comment

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

LGTM! 👍 ✅ 🎉

Copy link
Contributor

@asudoh asudoh left a comment

Choose a reason for hiding this comment

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

LGTM 👍 - Thanks @abbeyhrt!

Copy link
Member

@aagonzales aagonzales left a comment

Choose a reason for hiding this comment

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

Nicely done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modal with a single child has padding that causes scrolling issue
4 participants