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

feat(component): rename popover offset props and defaults #447

Merged
merged 2 commits into from
Sep 3, 2020

Conversation

deini
Copy link
Member

@deini deini commented Sep 1, 2020

  • Make Popover and Tooltips have the same default offset as dropdowns.
  • Rename offset props for Popover

@deini deini requested a review from a team as a code owner September 1, 2020 15:32
types: 'number',
defaultValue: '0',
description: 'Determines the popover offset on the X axis.',
description: 'Determines the offset along the anchorElement.',
},
{
name: 'offsetY',
Copy link
Member

Choose a reason for hiding this comment

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

Should you rename this to distance also?

types: 'number',
defaultValue: '0',
description: 'Determines the popover offset on the X axis.',
description: 'Determines the offset along the anchorElement.',
Copy link
Member

Choose a reason for hiding this comment

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

🍹 I'd specify the direction of the offset, eg for skidding Determines the horizontal offset along the anchorElement
and for distance I'd say Determines the vertical offset along the anchorElement. I think it's a bit more clear

Copy link
Member Author

@deini deini Sep 1, 2020

Choose a reason for hiding this comment

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

In this case, there is no concept of horizontal/vertical since a Popover can be placed in any direction (top, right, etc).

@deini deini merged commit 4a88f09 into bigcommerce:master Sep 3, 2020
@deini deini deleted the popover branch September 3, 2020 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants