Utilizing a react-bootstrap Popover component, I have implemented custom styling for the arrow with a gray color and 50% opacity. The CSS code that enables this customization is as shown below:
.popover .popover-arrow::before, .popover .popover-arrow::after {
border-color: #212529 !important;
opacity: 0.5;
border-top-color: transparent !important;
border-bottom-color: transparent !important;
}
This styling works well for horizontal arrows, when the Popover appears to the left or right of the target element:
https://i.sstatic.net/7Vvvp.png
However, issues arise when the arrow changes orientation to vertical (Popover positioned above or below the target), resulting in an inverted color scheme where the arrow becomes transparent against a grey background:
https://i.sstatic.net/aSLN9.png
My inquiry pertains to understanding why this inversion occurs and seeking potential solutions to rectify this unexpected behavior.