Skip to content
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

Merged
merged 31 commits into from
Dec 10, 2019
Merged

style: Updated Array UI #1617

merged 31 commits into from
Dec 10, 2019

Conversation

tdurnford
Copy link
Collaborator

Description

Updated validation and choice options array field input UI.

Task Item

Closes #1510

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have functionally tested my change

Screenshots

Choice Options

image

Validation Rules

image

onKeyDown={submitNewValidation}
schema={schema}
formContext={formContext}
rawErrors={[]}

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={{

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' }}

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={{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use useMemo.

@tdurnford tdurnford changed the title Updated Array UI style: Updated Array UI Dec 3, 2019
@tdurnford tdurnford marked this pull request as ready for review December 3, 2019 23:19
@cwhitten
Copy link
Member

cwhitten commented Dec 7, 2019

@tdurnford Scope the following screenshots:

The RootField editable title has moved and looks off.
Screen Shot 2019-12-07 at 10 34 56 AM
Screen Shot 2019-12-07 at 10 33 02 AM

Borders for fields with a value have largely disappeared. Fields with placeholder text have an opacity less than 1. Is this intentional?
Screen Shot 2019-12-07 at 10 33 11 AM

Single-item fields are not centered.
Screen Shot 2019-12-07 at 10 32 49 AM

@cwhitten cwhitten added the R7 Release 7 - December 10th, 2019 label Dec 9, 2019
@cwhitten cwhitten merged commit 4180fed into microsoft:master Dec 10, 2019
@cwhitten cwhitten mentioned this pull request Dec 10, 2019
@tdurnford tdurnford deleted the 1510 branch December 10, 2019 03:08
@a-b-r-o-w-n a-b-r-o-w-n mentioned this pull request Dec 11, 2019
This was referenced Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
R7 Release 7 - December 10th, 2019
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants