Conversation
|
|
||
| .arrow::before, | ||
| .arrow::after { | ||
| top: 100%; |
There was a problem hiding this comment.
Please do not use any CSS for the position of our arrow, the arrow position is managed by Popper.js not our CSS
There was a problem hiding this comment.
popper.js manages .arrow not .arrow:before and .arrow:after.
So it's safe to position these pseudo-elements.
Johann-S
left a comment
There was a problem hiding this comment.
Remove any css rules which manage the arrow position please
You're right @wojtask9 maybe you can add a Codepen to show your work
|
default border-width border width 3px; Sadly I see bug with popover with header. |
|
You can change that line : https://github.com/twbs/bootstrap/blob/v4-dev/js/src/tooltip.js#L103 |
|
But then additional html markup is required (not hard because only template must be modified) |
| width: 20px; | ||
| margin-left: -10px; | ||
|
|
||
| .popover-header:not(:empty) + .arrow:after { |
There was a problem hiding this comment.
Begin pseudo elements with double colons: ::
|
I've changed updated codepen: |
|
also artifacts on on certain zoom level could be solved. |
|
No we don't handle browser zooming |
|
Hi |
|
@NielsHolt |
|
#23936 better fix |
Current
borderof popover arrow can be only 1px.This PR takes into account popover border too.
You can play with arrow border here: http://www.cssarrowplease.com/
Also this PR fixes white arrow background with popover-header
before:

after:
