Skip to content

fix(ios): prevent modal confirm button overlap with font scaling#969

Open
dishantwalia wants to merge 2 commits into
henninghall:masterfrom
dishantwalia:fix/ios-modal-font-scaling-mf-3464
Open

fix(ios): prevent modal confirm button overlap with font scaling#969
dishantwalia wants to merge 2 commits into
henninghall:masterfrom
dishantwalia:fix/ios-modal-font-scaling-mf-3464

Conversation

@dishantwalia

Copy link
Copy Markdown

Summary

Fixes the iOS modal date picker layout when Dynamic Type / font scaling is enabled. The embedded UIDatePicker subview could overlap the UIAlertAction button touch area, making Confirm/Cancel untappable — reported in portrait and landscape.

Changes

  • Expand alert height adjustments to standard Dynamic Type categories (Large through ExtraExtraExtraLarge), not only accessibility tiers
  • Add landscape-specific height buffer
  • Clip and constrain picker frame so it cannot extend into the action button region
  • Use statusBarOrientation for reliable landscape detection

Related issues

Test plan

Fixes confirm/cancel buttons becoming untappable when Dynamic Type
is enabled in portrait and landscape modal date pickers.

- Expand height adjustments to standard Dynamic Type categories
- Add landscape height buffer and picker clipping
- Reserve button touch area above UIAlertAction rows

Refs henninghall#960
Refs punchhdev.atlassian.net/browse/MF-3464

Co-authored-by: Cursor <cursoragent@cursor.com>
Rework layout math so alert height is derived from title + picker +
scaled action-button area, then capped to available screen height.
Prevents picker/action overlap in landscape with Dynamic Type.

Refs henninghall#960
Refs punchhdev.atlassian.net/browse/MF-3464

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

[Bug]: Confirm Button Not Clickable in landscape mode when font scaling is enabled in iOS when mode="date" modal  is true.

2 participants