Popover: use correct design token for arrow positioning, fixes #5755 (#5756)

pull/5806/head
Michael Meier 2024-05-17 17:34:48 +02:00 committed by GitHub
parent 6b5e06c0cc
commit 5b3efec9e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ export default {
arrowLeft = targetOffset.left - containerOffset.left; arrowLeft = targetOffset.left - containerOffset.left;
} }
this.container.style.setProperty($dt('overlay.arrow.left').name, `${arrowLeft}px`); this.container.style.setProperty($dt('popover.arrow.left').name, `${arrowLeft}px`);
if (containerOffset.top < targetOffset.top) { if (containerOffset.top < targetOffset.top) {
this.container.setAttribute('data-p-popover-flipped', 'true'); this.container.setAttribute('data-p-popover-flipped', 'true');