-
Notifications
You must be signed in to change notification settings - Fork 381
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
JSONForms VanillaLayouter does not expose enough CSS classes, which results in heavy code duplication on framework user code #1677
Comments
BUG 1: Observation: It is possible to inject a custom CSS class "ctk4-model-properties-group-layout-item". |
BUG 2: Observation: There is no custom CSS class in this element. If there were a CSS class, how would it |
BUG 3: Observation: CSS classes of this DIV section use names that correspond to the schema / UI schema. |
Thanks for this extensive report!
I agree, we can add the hardcoded
Good point, we should definitely do this.
Makes sense to me! I would like to suggest the name |
Files:
firefox_inspector_result.html.txt - relevant HTML source as shown in Firefox Inspector mode
named-commented-eobject.css.txt - CSS that achieved the result (BUT with heavy code duplication)
model-properties-view-content-widget.react.txt - JSONForms framework user code
Expected behavior
Every DIV section generated by JSONForms should have a proper CSS class that can be overridden by user code.
Screenshots

PropertySection.png - Screenshot of the Solution
Browser:
Used Setup (please complete the following information):
Based on this information I submit 3 bugs in replies to this initial report.
The text was updated successfully, but these errors were encountered: