-
Notifications
You must be signed in to change notification settings - Fork 841
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
[EuiForm] Added invalidCallout
prop to allow conditional rendering of error callout
#3585
Conversation
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We try to limit our usage of boolean prop types because they're not scalable.
You'll also need to:
- Add a test for the new prop
- Update the snapshots
- Add a changelog entry
@cchaos Made the changes :) |
Okay on it |
@cchaos Added testing and updated the changelog could you review this? |
jenkins test this |
invalidCallout
prop to allow conditional rendering of error callout
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cchaos Made the changes, Could you review it? |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3585/ |
@shrey You're still missing a few changes from the review like changing the text of the test and docs example. |
@cchaos Done |
@@ -1,5 +1,13 @@ | |||
// Jest Snapshot v1, https://goo.gl/fbAQLP | |||
|
|||
exports[`EuiForm checks if invalidCallout works 1`] = ` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to update the snapshots again as well.
@cchaos Updated the snapshot, Could you review it? |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3585/ |
@cchaos Any clue why the tests failed? |
Please run |
@chandlerprall Yeah, done. |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3585/ |
Network error preparing the docker test environment. jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3585/ |
@chandlerprall passed, finally :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry @shrey I messed up the props doc syntax and so the props table wasn't showing the prop comment. I have fixed this now and once CI passes (again) I'll merge it down.
Thanks 🎉 !
Jenkins, test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3585/ |
@cchaos No issues, Tests passed :) |
Preview documentation changes for this PR: https://eui.elastic.co/pr_3585/ |
Summary
Added an additional boolean showCallout property in EuiForm which the user can set to true if they want the error callout to be shown
Checklist
Check against all themes for compatibility in both light and dark modesChecked in mobileChecked in IE11 and Firefox[ ] Checked for breaking changes and labeled appropriately[ ] Checked for accessibility including keyboard-only and screenreader modesFixes #478 @snide @cchaos