-
Notifications
You must be signed in to change notification settings - Fork 404
material-renderers: Validation Icon on individual ExpandPanel, ListWithDetail items #2456
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
base: master
Are you sure you want to change the base?
Conversation
✅ Deploy Preview for jsonforms-examples ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
1190bd3
to
ebcc4c1
Compare
ebcc4c1
to
fec759b
Compare
Thanks for the contribution ❤️ This looks useful to me :) |
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.
Hi @vishnutsivan , thanks again for the contribution! The changes generally look reasonable to me and the feature is useful :)
I have one comment inline. Please have a look.
Also, for the validation icon in the master list item, there should be a little more space between the validation icon and the text. Furthermore, the validation icon should be vertically aligned with the text. I.e. see the screenshot below where the icon and text do not align and are very close together.
@@ -823,6 +833,7 @@ export interface OwnPropsOfMasterListItem { | |||
|
|||
export interface StatePropsOfMasterItem extends OwnPropsOfMasterListItem { | |||
childLabel: string; | |||
childErrors: string; |
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.
This should be the raw errors of type ErrorObject[]
instead of the processed string for two reasons:
- To be consistent with the behavior of the array mapper in
mapStateToArrayControlProps
- To allow renderers to decided for themselves how to show the errors.
Validation icons on individual List with details item

Validation icons on individual Expand panel item
