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

gt - Form label group additions #378

Merged
merged 2 commits into from
Apr 5, 2018
Merged

Conversation

gthomas-appfolio
Copy link
Contributor

No description provided.

@gthomas-appfolio gthomas-appfolio requested a review from choruk April 4, 2018 23:56
Copy link
Contributor

@choruk choruk left a comment

Choose a reason for hiding this comment

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

I added one comment, but I think I'm just going to merge this PR into my branch and then I can address that comment myself and then add some tests. Let me know if you disagree with that comment though.

stacked,
width
} = props;

const rowColor = color || (invalid && 'danger');
Copy link
Contributor

Choose a reason for hiding this comment

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

I added the invalid prop because I wasn't sure whether we wanted to include the FormFeedback piece, but I do agree that it makes sense to have that. As a result, I think we can get rid of the invalid prop and just change this check from:

const rowColor = color || (invalid && 'danger');

to:

const rowColor = color || (feedback && 'danger');

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. My view on including the form feedback and hint is I'd like to see this as a general purpose component that can be used in place of FormRow. This helps by doing all the various feedback, etc in the correct place and tweaks, just without the FormRow 'magic' of type, state, value stuff

@choruk choruk merged commit 4a953c9 into ngAddFormLabelGroup Apr 5, 2018
@choruk choruk deleted the gtAddFormLabelGroup branch April 5, 2018 00:40
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