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: Use the popperPlacement prop to allow fallbackPlacements #1126

Merged
merged 1 commit into from
Jul 16, 2020

Conversation

skvale
Copy link
Contributor

@skvale skvale commented Jul 16, 2020

Description

This came up as an improved way to implement fallback placements for popper components. Basically the popperPlacement prop can be a single string and utilize Popper's default of flipping to the opposite placement
i.e. "bottom-end" would flip to "top-end" by default

or they can specify an array of placements to use. popperPlacement={['bottom-end', 'right', 'top']}

This needed to be implemented to better support flip containers, DOM elements which the popper should stay within, in this PR #1122.

NOTE: The exposed fallbackPlacements prop has only been in an rc release, so it's not a breaking change outside of the current rc

fixes #issueid

@skvale skvale requested a review from greg-a-smith July 16, 2020 18:28
@skvale skvale self-assigned this Jul 16, 2020
@netlify
Copy link

netlify bot commented Jul 16, 2020

Deploy preview for fundamental-react ready!

Built with commit e5acf75

https://deploy-preview-1126--fundamental-react.netlify.app

Copy link
Contributor

@greg-a-smith greg-a-smith left a comment

Choose a reason for hiding this comment

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

Looks good. 🚢

@skvale skvale merged commit ca5a66f into master Jul 16, 2020
@skvale skvale deleted the feat/change-api-for-fallback-popper-placements branch July 16, 2020 18:51
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

3 participants