Skip to content

Commit 0c1bab0

Browse files
committed
Clips graph hover arrow
1 parent b7b7b97 commit 0c1bab0

File tree

1 file changed

+4
-0
lines changed
  • src/webviews/apps/shared/components/overlays

1 file changed

+4
-0
lines changed

src/webviews/apps/shared/components/overlays/popover.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,21 +97,25 @@ export class GlPopover extends GlElement {
9797
.popover[data-current-placement^='top']::part(arrow) {
9898
border-top-width: 0;
9999
border-left-width: 0;
100+
clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
100101
}
101102
102103
.popover[data-current-placement^='bottom']::part(arrow) {
103104
border-bottom-width: 0;
104105
border-right-width: 0;
106+
clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
105107
}
106108
107109
.popover[data-current-placement^='left']::part(arrow) {
108110
border-bottom-width: 0;
109111
border-left-width: 0;
112+
clip-path: polygon(0 0, 100% 0, 100% 100%, 70% 100%, 0 30%);
110113
}
111114
112115
.popover[data-current-placement^='right']::part(arrow) {
113116
border-top-width: 0;
114117
border-right-width: 0;
118+
clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 70%, 30% 0);
115119
}
116120
117121
.popover__body {

0 commit comments

Comments
 (0)