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

compute styles object for arrow in computeStyles #347

Closed
giladgray opened this issue Jul 11, 2017 · 2 comments · Fixed by #370
Closed

compute styles object for arrow in computeStyles #347

giladgray opened this issue Jul 11, 2017 · 2 comments · Fixed by #370
Assignees
Labels
feature This would be nice to have. PRIORITY: low TARGETS: modifier Related to a modifier.

Comments

@giladgray
Copy link

per floating-ui/react-popper#34 (comment), it would seem that a data.styles.arrow object would be helpful to provide a consistent rendering experience.

currently, data.styles contains CSS properties for the popper element, and there is no equivalent for pre-computed CSS properties for the arrow.

@giladgray
Copy link
Author

@FezVrasta filed this to follow up on our discussion linked above, feel free to update it as you see fit!

@FezVrasta
Copy link
Member

FezVrasta commented Jul 11, 2017

I think we can add an arrowStyles property to the data object and use it in the applyStyle modifier. This shouldn't introduce any breaking change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This would be nice to have. PRIORITY: low TARGETS: modifier Related to a modifier.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants