Skip to content

(PDS-584) Add mechanism for force updating Overlay #403

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

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

mardotio
Copy link
Contributor

@mardotio mardotio commented Apr 8, 2021

Current Behavior

  • Overlay position has no way to be updated if the original target moved

New Behavior

  • Overlay can be forced to recalculate its position by providing a new string value for show

Position Change Example

Screen.Recording.2021-04-08.at.1.32.28.PM.mov

Updated `show` prop to allow a string so that the Overaly can be
updated if the value of `show` changes. This is useful if the UI shifts
and the target is not in the same position as it was when the overlay
was created.
@mardotio mardotio requested a review from a team as a code owner April 8, 2021 17:37
@vine77
Copy link
Contributor

vine77 commented Apr 12, 2021

@mardotio and I are trying to get the website to run locally before deploying these changes (with npm install && npm start in the root design-system folder). Getting a Can't resolve 'react-popper' error now.

@vine77 vine77 merged commit db7f9fd into development Apr 12, 2021
@vine77 vine77 deleted the PDS-584/overlay-trigger-update branch April 12, 2021 21:57
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.

3 participants