You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
I am using example code from the popper docs with styled components.
I want to make sure it is not related to styled components usage. Happy to create an additional example if this repro isn't good enough.
Steps to reproduce the problem
Please see code sandbox. Issue is present on load.
What is the expected behavior?
When I adjust the placement value the arrow should be positioned correctly via styles.arrow
What went wrong?
The arrow is positioned correctly for certain placements like top and bottom but is off for most other placements including variation placements like top-start, bottom-start etc.
Any other comments?
I might be missing some userland code that I need to add here but my expectation was that the arrow would get positioned automagically via the translate styling being passed via styles.arrow.
Guidance on how to get the correct arrow position for all placement values would be greatly appreciated!
Packages versions
Popper.js: 2.6.0
react-popper: 2.2.4
The text was updated successfully, but these errors were encountered:
Reproduction demo
https://codesandbox.io/s/blue-leftpad-4of16?file=/src/Tooltip.tsx
I am using example code from the popper docs with styled components.
I want to make sure it is not related to styled components usage. Happy to create an additional example if this repro isn't good enough.
Steps to reproduce the problem
Please see code sandbox. Issue is present on load.
What is the expected behavior?
When I adjust the
placement
value the arrow should be positioned correctly viastyles.arrow
What went wrong?
The arrow is positioned correctly for certain placements like
top
andbottom
but is off for most other placements including variation placements liketop-start
,bottom-start
etc.Any other comments?
I might be missing some userland code that I need to add here but my expectation was that the arrow would get positioned automagically via the
translate
styling being passed viastyles.arrow
.Guidance on how to get the correct arrow position for all placement values would be greatly appreciated!
Packages versions
The text was updated successfully, but these errors were encountered: