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(ChecklistCard): Ensure divider doesn’t cover error border #92

Merged
merged 1 commit into from
Feb 13, 2019

Conversation

markdalgleish
Copy link
Member

Before:

screen shot 2019-02-13 at 11 50 16 am

After:

screen shot 2019-02-13 at 11 50 30 am

Note: This introduces a double border between checkboxes when multiple error states are stacked, but this is being treated as the lesser of two evils for now.

</Fragment>
))}
{React.Children.map(children, (child, i) => {
if (typeof child !== 'object') {
Copy link
Contributor

Choose a reason for hiding this comment

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

What's this guarding against specifically?

Copy link
Member Author

Choose a reason for hiding this comment

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

Children can be primitive types, like string or number, which don't have a props property.

@markdalgleish markdalgleish merged commit fc3c4a5 into master Feb 13, 2019
@markdalgleish markdalgleish deleted the fix-checklistcard-border-issue branch February 13, 2019 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants