-
Notifications
You must be signed in to change notification settings - Fork 75
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
Feature: consider restyling arrow #13
Comments
Thanks for the feature request. I had thought of doing this in the first place but I decided not to include that because the popover actually doesn't add any styling related to borders or box shadows. When I redesign this I was thinking of removing the colour option and to just provide examples of CSS to customise the arrow. The best option would be to provide SASS with variables to change to auto generate the styles for that config. This could then be wrapped with a CSS class and easily have different styles for different popovers. What do you think of that approach? |
@joejordanbrown sorry for late response. |
I tried using the styles in the attached image. They look good but the cdk is adjusting the popover even when using
|
how set Arrow placement left right? |
Currently arrow is just a flat triangle, that doesn't look good on white background:
I've added arrow in away that Bootstrap 4 does that (using ::before and ::after selectors):
Here is my prove of concept: https://stackblitz.com/edit/mde-popover-kg8eqr?file=styles.scss
I've just looked at how Google did they popup, they are using two triangles and offset them by one pixel. This way they get the border effect. Maybe this could be used instead of pseudo selectors.
The text was updated successfully, but these errors were encountered: