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

chore(card): fix documentation and small refactor #1278

Merged
merged 2 commits into from
Mar 13, 2020
Merged

Conversation

jonnybel
Copy link
Contributor

@jonnybel jonnybel commented Mar 12, 2020

Summary

@YahiaElTai raised the fact that the className prop was documented with the wrong casing. This is fixed in this PR.

Also took the opportunity to remove one unnecessary wrapper and styles from the component.

@vercel
Copy link

vercel bot commented Mar 12, 2020

This pull request is being automatically deployed with ZEIT Now (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://zeit.co/commercetools/ui-kit/241h3kvlf
✅ Preview: https://ui-kit-git-ja-chore-card-docs.commercetools.now.sh

display: flex;
font-size: 1rem;
flex-direction: column;
box-sizing: border-box;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This rule makes it unnecessary to have a wrapper just to set a padding.

Also, without the extra wrapper there's no need for flex here.

@jonnybel jonnybel requested a review from YahiaElTai March 12, 2020 17:33
@jonnybel jonnybel changed the title chore(card): Fix documentation and small refactoring chore(card): fix documentation and small refactor Mar 12, 2020
Copy link
Contributor

@YahiaElTai YahiaElTai left a comment

Choose a reason for hiding this comment

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

Thanks for handling this. and Thanks for being super quick about it 🚀

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.

2 participants