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

fix: No Popover Arrow #790

Merged
merged 5 commits into from
Nov 18, 2019
Merged

fix: No Popover Arrow #790

merged 5 commits into from
Nov 18, 2019

Conversation

prsdthkr
Copy link
Member

Description

Cause: Mismatch between FD-style expected attribute name and FD-react property applied leading to appropriate styles not being applied to the popover.

Solution: Change popover <div>'s property names to match FD-style attribute selectors seen here.

  • data-placement becomes x-placement
  • data-x-out-of-boundaries becomes x-out-of-boundaries
  • Storybook entry for popover placement added

Before (chrome)
image

After (chrome)
image

fixes #740

@prsdthkr prsdthkr requested review from greg-a-smith and jbadan and removed request for greg-a-smith November 13, 2019 18:43
@prsdthkr prsdthkr self-assigned this Nov 13, 2019
@CLAassistant
Copy link

CLAassistant commented Nov 13, 2019

CLA assistant check
All committers have signed the CLA.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Prasad Thakur seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@prsdthkr prsdthkr added bug Something isn't working / Issues in the code fixed A fix for the issue was provided labels Nov 13, 2019
@netlify
Copy link

netlify bot commented Nov 13, 2019

Deploy preview for fundamental-react ready!

Built with commit 17a0ca0

https://deploy-preview-790--fundamental-react.netlify.com

placement='left-start'
style={{ position: 'fixed', top: '15em', left: '40em' }} />
</>
))
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you're making examples of each placement, we should probably also add top-start, top-end, bottom-start and bottom-end.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done. IDK how I missed these. Thanks!

@prsdthkr prsdthkr requested a review from a team November 14, 2019 19:03
Copy link
Contributor

@jacobdevera jacobdevera left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@jbadan jbadan left a comment

Choose a reason for hiding this comment

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

This looks good - it has made me realize we have no tests for _Popper but that's a separate issue 🚢

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.

Functionally, this looks good. I just think the storybook examples should be cleaned up a bit.

body={someText}
control={<Button glyph='navigation-up-arrow' option='light' >Pop to Top-Start</Button>}
placement='top-start'
style={{ position: 'fixed', top: '10em', left: '35em' }} />
Copy link
Contributor

Choose a reason for hiding this comment

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

The placement style for each of these is strange. When I have the inspector open, I am not seeing the bottom row and no scrollbar appears. How about building a table that is centered?

Layout
Top Start Top Top End
Left Start Right Start
Left Right
Left End Right End
Bottom Start Bottom Bottom End

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. 🚢

@prsdthkr prsdthkr merged commit 9b79b81 into master Nov 18, 2019
@prsdthkr prsdthkr deleted the fix/no-popover-arrow branch November 18, 2019 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working / Issues in the code fixed A fix for the issue was provided
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Arrow missing on Popover
5 participants