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

Make ObjectProperty 'close' height consistent #136

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jlost
Copy link

@jlost jlost commented Jan 25, 2024

Fixes #135 by making the composition of the ObjectProperty component closer to that of the FunctionProperty.

Now it looks like this:

image

test, e2e, and prettier all pass.

Copy link

netlify bot commented Jan 25, 2024

👷 Deploy request for blissful-poincare-c75feb accepted.

Name Link
🔨 Latest commit 9860e8f
🔍 Latest deploy log https://app.netlify.com/sites/blissful-poincare-c75feb/deploys/65b2d7e1839e170008f6af6f

@jlost jlost marked this pull request as ready for review January 25, 2024 21:58
Comment on lines 37 to +46
<Button
icon={<FormClose />}
tip={`clear ${name}`}
hoverIndicator
onClick={() => onChange(undefined)}
/>
pad={{ vertical: 'xsmall', horizontal: 'small' }}
>
<Box pad={{ vertical: 'xsmall', horizontal: 'small' }}>
<FormClose />
</Box>
</Button>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we change this to

<Button
  icon={<FormClose />}
  tip={`clear ${name}`}
  hoverIndicator
  onClick={() => onChange(undefined)}
  plain
  fill="vertical"
/>

Then I think we don't need the changes to flex on the other lines

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for the feedback, I'll try that out soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ObjectProperty 'close' height inconsistent
2 participants