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

Styling the tiny triangle between popover and target #108

Open
darrenklein opened this issue Aug 30, 2023 · 0 comments
Open

Styling the tiny triangle between popover and target #108

darrenklein opened this issue Aug 30, 2023 · 0 comments

Comments

@darrenklein
Copy link

darrenklein commented Aug 30, 2023

Thanks very much for your hard work on this repo. When applying a background color to the popover, I noticed that the tiny triangle ::before pseudo-element that connects the popover to the target element was still white. I found that I was able to set the color of its background by changing the color of its border-top like so:

[data-popover="popover-name"] {
  background: #15512c;
  color: white;

  &::before {
    border-top-color: #15512c; !important;
  }
}

Please let me know if there's a better way to do this... otherwise, I hope that this is helpful for anyone else struggling with this.

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

No branches or pull requests

1 participant