-
Notifications
You must be signed in to change notification settings - Fork 378
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
style: Updated Array UI #1617
style: Updated Array UI #1617
Conversation
Composer/packages/extensions/obiformeditor/src/Form/ArrayFieldTemplate/ArrayItem.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/obiformeditor/src/Form/ArrayFieldTemplate/ArrayItem.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/obiformeditor/src/Form/ArrayFieldTemplate/ArrayItem.tsx
Show resolved
Hide resolved
Composer/packages/extensions/obiformeditor/src/Form/ArrayFieldTemplate/StringArray.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/obiformeditor/src/Form/ArrayFieldTemplate/StringArray.tsx
Outdated
Show resolved
Hide resolved
onKeyDown={submitNewValidation} | ||
schema={schema} | ||
formContext={formContext} | ||
rawErrors={[]} |
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.
Sure you want to send an empty array but not leaving it undefined
? Then, use const EMPTY_ARRAY = [];
outside of this function, so the reference never change and you don't need useMemo
.
schema={schema} | ||
formContext={formContext} | ||
rawErrors={[]} | ||
styles={{ |
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.
Use useMemo
.
</div> | ||
<IconButton | ||
disabled={true} | ||
menuIconProps={{ iconName: 'MoreVertical' }} |
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.
Use useMemo
.
disabled={true} | ||
menuIconProps={{ iconName: 'MoreVertical' }} | ||
ariaLabel={formatMessage('Item Actions')} | ||
styles={{ |
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.
Use useMemo
.
Composer/packages/extensions/obiformeditor/src/Form/widgets/ExpressionWidget.tsx
Outdated
Show resolved
Hide resolved
Composer/packages/extensions/obiformeditor/src/Form/fields/CustomObjectField.tsx
Outdated
Show resolved
Hide resolved
@tdurnford Scope the following screenshots: The RootField editable title has moved and looks off. Borders for fields with a value have largely disappeared. Fields with placeholder text have an opacity less than 1. Is this intentional? |
Description
Updated validation and choice options array field input UI.
Task Item
Closes #1510
Type of change
Please delete options that are not relevant.
Checklist
Screenshots
Choice Options
Validation Rules