Skip to content

improve display of objects and arrays in schema settings #120

@miguelgrc

Description

@miguelgrc

When using object or array fields in the schema settings (e.g. for options in select or slider fields) the styling is a bit janky, with unnecessary margins and background colors. This is due to the fact the object and array fields are styled this way for the final form, but this is not necessary for the form rendering the settings, which so far is affected by the same styles. We should think of a way to prevent this and provide a cleaner UI in the settings, maybe by using a custom field template that overrides these from fieldTypes to remove the unwanted styling, or the other way around, providing the custom template from FormuleForm to add the styling for the final form/form preview only.

A temporary (insufficient) fix has been to pass marginBottom: uiSchema["ui:label"] === false ? 0 : undefined in FieldTemplate style

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions