-
Notifications
You must be signed in to change notification settings - Fork 65
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
Conversation
deini
commented
Sep 1, 2020
- Make Popover and Tooltips have the same default offset as dropdowns.
- Rename offset props for Popover
types: 'number', | ||
defaultValue: '0', | ||
description: 'Determines the popover offset on the X axis.', | ||
description: 'Determines the offset along the anchorElement.', | ||
}, | ||
{ | ||
name: 'offsetY', |
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.
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.', |
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.
🍹 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
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.