Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix wrong implementation of horizontal centering the grid-container #11634

Merged
merged 1 commit into from
Dec 18, 2018
Merged

Fix wrong implementation of horizontal centering the grid-container #11634

merged 1 commit into from
Dec 18, 2018

Conversation

HarwinBorger
Copy link

@HarwinBorger HarwinBorger commented Dec 17, 2018

Description

The margin on top and bottom of the container should not be set to ZERO. And vertical margin on the grid-container makes it impossible to add a new margin top or bottom. Should not be set by default.

Types of changes

  • Documentation
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (anything that would change an existing functionality)
  • Maintenance (refactor, code cleaning, development tools...)

Checklist

  • I have read and follow the CONTRIBUTING.md document.
  • The pull request title and template are correctly filled.
  • The pull request targets the right branch (develop or develop-v...).
  • My commits are correctly titled and contain all relevant information.
  • I have updated the documentation accordingly to my changes (if relevant).
  • I have added tests to cover my changes (if relevant).

The margin on top and bottom of the container should not be set to ZERO. And vertical margin on the grid-container makes it impossible to add a new margin top or bottom. Should not be set by default.
Copy link
Contributor

@ncoden ncoden left a comment

Choose a reason for hiding this comment

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

Hi @HarwinBorger 👋, thank you for the pull request.

You are right. Even if it is easier to use the short-hand property margin, we should not set the vertical/horizontal margin when it is not needed.

So XY Grid container is an horizontal container only. So LGTM 👍

Thamks @KevinKoobs for the review.

@ncoden ncoden merged commit f8f447a into foundation:develop Dec 18, 2018
@HarwinBorger
Copy link
Author

Hi @ncoden,

Thanks for the quick response. I am happy to hear that you approve the changes.

Looking forward to the next update! 👍

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

Successfully merging this pull request may close these issues.

Grid-container has margin top and bottom set on 0 (zero)
3 participants