Skip to content

feat: accept an explicit vertical popover offset - #9

Closed
rdlabo wants to merge 1 commit into
mainfrom
fix/popover-vertical-offset
Closed

rdlabo wants to merge 1 commit into
mainfrom
fix/popover-vertical-offset

Conversation

@rdlabo

@rdlabo rdlabo commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Projected Vertical Bars controls need their horizontal callout centered on the visible button. A boolean tied to the current 8px margin obscures the actual adjustment and is unsuitable if that margin changes.

This proposal adds a numeric verticalOffset animation option, measured in CSS pixels. Omitting it uses POPOVER_IOS_BODY_MARGIN; callers can explicitly pass 0 or another value. Replacing surfaces keep their existing positioning. No device detection or new viewport-clamping behavior is added.

This replaces the reverted #7 and #8. The main branch was restored in 040f464; the already-published 0.1.3 package and tag remain published. This PR does not change versions or initiate a release.

Consumer proposal: ionic-theme-ios27 #258 passes 0 only for horizontal popovers anchored to a projected Vertical Bar.

Validation: all 20 unit tests and the TypeScript build pass. The offset regression covers omission, zero, positive and negative values. Consumer visual revalidation remains pending; this is a draft for design review.

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.

1 participant