Shane Callanan
Shane Callanan

Reputation: 521

How to remove arrow from PrimeReact OverlayPanel?

Overlay with arrow

This question relates to the OverlayPanel component in PrimeReact.

I'm looking to remove the small arrow between the overlay panel and its appending element (as can be seen in the image above).

Upvotes: 3

Views: 2686

Answers (1)

Shane Callanan
Shane Callanan

Reputation: 521

This can be achieved by setting the content style to none as follows:

p-overlaypanel {
    &:before {
        content:none;
    }

    &:after {
        content:none;
    }

    margin-top: 0px; # removes the gap between menu and anchor element after arrow-removal
}

Upvotes: 4

Related Questions