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

Use Popper.js to manage arrow position #22681

Merged
merged 2 commits into from
May 23, 2017
Merged

Use Popper.js to manage arrow position #22681

merged 2 commits into from
May 23, 2017

Conversation

Johann-S
Copy link
Member

@Johann-S Johann-S commented May 23, 2017

Use Popper.js to manage arrow position instead of using CSS

Close : #22669, #22572

@Johann-S Johann-S added this to the v4.0.0-beta milestone May 23, 2017
@Johann-S Johann-S merged commit 460ff23 into v4-dev May 23, 2017
@Johann-S Johann-S deleted the v4-popper-arrow branch May 23, 2017 13:20
@mdo mdo mentioned this pull request May 23, 2017
<div class="popover bs-popover-right">
<div class="arrow"></div>
<div class="popover bs-popover-right bs-popover-right-docs">
<div class="arrow" x-arrow></div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Note that you may override the x-arrow selector and simply use .arrow as selector if you prefer.

Copy link
Member Author

@Johann-S Johann-S May 23, 2017

Choose a reason for hiding this comment

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

Yes, but do you know if it will cause Bootstrap some issues to use x-arrow attribute ? If not I'll keep x-arrow.
But thank you for letting me know that 👍

Choose a reason for hiding this comment

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

IMO this would be preferable since it would decouple Bootstrap from a library to manage positioning. This is especially important for libraries that build on top of Bootstrap's CSS and re-do JavaScript logic (ex.: https://ng-bootstrap.github.io/#/components/popover)

Copy link
Contributor

Choose a reason for hiding this comment

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

There aren't problems using x-arrow, but as @pkozlowski-opensource said, you may want to reduce the points of junction between Bootstrap and Popper.js to avoid to coupling them too much.

Copy link
Member Author

Choose a reason for hiding this comment

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

Feel free to open a pull request @pkozlowski-opensource if you want to handle that 👍

Choose a reason for hiding this comment

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

Will do. Thnx @Johann-S @FezVrasta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants