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

Fix positioning of overlay arrows #5975

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ajm13
Copy link

@ajm13 ajm13 commented Jun 27, 2024

###Defect Fixes
This fixes #5915

A few things:

  • ConfirmPopup was defining overlay.arrow.left but there were no references to overlay design token
  • Popover defines popover.arrow.left, but only uses popover.arrow.offset
  • I renamed overlay.arrow.left to confirmpopup.arrow.left to follow convention (there is an existing confirmpopup.arrow.offset)
  • I added arrow.left in the arrow CSS, as I believe the separate token arrow.offset was meant for a fixed offset based on arrow size

Result:

  • Calculated arrow.left values for confirmpopup and popover are actually used in the positioning of the arrow to make it dynamic based on screen location. arrow.offset token is still used for arrow theming.

Copy link

vercel bot commented Jun 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
primevue ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 3:31am
primevue-v3 ⬜️ Ignored (Inspect) Visit Preview Jun 27, 2024 3:31am

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

Successfully merging this pull request may close these issues.

Popover - Misplaced arrow
1 participant