-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Convert tooltip and popover's arrows to generated CSS content via ::before/::after #17238
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
Conversation
And what about popover arrows? Line 26 in cf7819d
|
Cool, I'm going to work in it. |
Just added popover's arrows via |
👍 |
Huh, we apparently lost the feature of tooltips and their arrows adjusting their position as to not flow out of the viewport. CC @fat |
@@ -23,19 +23,22 @@ | |||
&.bs-tether-element-attached-bottom { | |||
margin-top: -$popover-arrow-width; | |||
|
|||
.popover-arrow { | |||
bottom: -$popover-arrow-outer-width; | |||
&::before, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mdo prefers the single-colon form for some reason. Please adjust these accordingly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cvrebert we implemented doubles today in a PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hnrch02 On the one hand that's not surprising since the existing positioning logic was trashed in favor of using Tether, but on the other hand I believe that's exactly the sort of thing that Tether is supposed to help us handle correctly. File a new bug for that? |
Rebase applied. |
@cvrebert, is there anything else I can help to make this PR ready to merge? |
CC: @mdo |
I say we put this on hold until we figure out if we want to resolve #17297 or not. Just gonna be more work restoring it if we remove it now. |
In favor of @hnrch02's comment. |
Closes ng-bootstrap#915 BREAKING CHANGE: ng-boostrap now uses bootstrap 4.0.0-alpha.5, which modified the markup used to generate tooltip and popover arrows (see twbs/bootstrap#17238). Using ng-bootstrap with an older version of bootstrap will thus not display tooltip and popover arrows anymore.
This PR removes the
div.tooltip-arrow
anddiv.popover-arrow
rendering the arrows using::before
and::after
pseudo elements.