Skip to content

Commit 5d6701a

Browse files
committed
fix(popover): Arrow placement middleware styles
1 parent fc3c187 commit 5d6701a

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/components/popover/popover.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,9 @@ export default class IgcPopoverComponent extends LitElement {
287287
left: 'right',
288288
}[first(placement.split('-'))]!;
289289

290-
// TODO: Clean-up this stuff
291290
Object.assign(this.arrow!.style, {
292-
left: x !== null ? `${roundByDPR(x!)}px` : '',
293-
top: y !== null ? `${roundByDPR(y!)}px` : '',
294-
right: '',
295-
bottom: '',
291+
left: x != null ? `${roundByDPR(x)}px` : '',
292+
top: y != null ? `${roundByDPR(y)}px` : '',
296293
[staticSide]: '-4px',
297294
});
298295
}

0 commit comments

Comments
 (0)