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

Add new side prop options for Popover component #661

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

sean-mckenna
Copy link
Collaborator

@sean-mckenna sean-mckenna commented Apr 3, 2024

Description of proposed changes

Add new side prop options for the popover component so that its possible to display the arrow in all corners.

Screenshot of proposed changes

Screenshot 2024-04-03 at 09 31 48

@sean-mckenna sean-mckenna marked this pull request as ready for review April 3, 2024 13:29
@sean-mckenna sean-mckenna requested a review from a team as a code owner April 3, 2024 13:29
Add new side prop options for the popover component so that its possible to display the arrow in all corners.
@@ -12,7 +12,16 @@ const propTypes = {
/** Component children */
children: PropTypes.node,
/** Side the arrow appears on */
side: PropTypes.oneOf(['top', 'bottom', 'left', 'right']),
side: PropTypes.oneOf([
Copy link
Contributor

Choose a reason for hiding this comment

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

would it be worth going with top-left, top-right etc just to be more explicit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I had thought about it, but that would be a breaking change and would require a major version bump. We could target that kind of change in v6.

@sean-mckenna sean-mckenna merged commit 5c4bc31 into main Apr 3, 2024
2 checks passed
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.

None yet

2 participants