Skip to content

feat(Modal): support third-party overlays#1894

Merged
stephenjwatkins merged 10 commits into
mainfrom
third-party-modal-fix
Jun 24, 2026
Merged

feat(Modal): support third-party overlays#1894
stephenjwatkins merged 10 commits into
mainfrom
third-party-modal-fix

Conversation

@stephenjwatkins

@stephenjwatkins stephenjwatkins commented Jun 23, 2026

Copy link
Copy Markdown
Member

📝 Changes

  • Adds a prop for supporting third-party overlays launched from our modals. Fixes a bug where some third-party overlays (Stripe Link Autofill, etc) launched from our modals get in a locked state
  • Documented in Storybook - no Story was easy to reproduce for this particular third-party case without introducing an extra dev dep that I didn't want to add to our dep tree

✅ Checklist

Easy UI has certain UX standards that must be met. In general, non-trivial changes should meet the following criteria:

  • Visuals match Design Specs in Figma
  • Stories accompany any component changes
  • Code is in accordance with our style guide
  • Design tokens are utilized
  • Unit tests accompany any component changes
  • TSDoc is written for any API surface area
  • Specs are up-to-date
  • Console is free from warnings
  • No accessibility violations are reported
  • Cross-browser check is performed (Chrome, Safari, Firefox)
  • Changeset is added

Strikethrough any items that are not applicable to this pull request.

@stephenjwatkins stephenjwatkins marked this pull request as ready for review June 23, 2026 16:58
@stephenjwatkins stephenjwatkins requested review from a team as code owners June 23, 2026 16:58

@ralexmatthews ralexmatthews left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Niiice LGTM 👍

const { isDismissable = true } = overlayProps;
// Branch into sibling components so each calls its hooks unconditionally.
return props.allowsThirdPartyOverlays ? (
<ThirdPartyOverlayUnderlay {...props} />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overlay underlay lol

@stephenjwatkins stephenjwatkins merged commit e47ec8f into main Jun 24, 2026
6 checks passed
@stephenjwatkins stephenjwatkins deleted the third-party-modal-fix branch June 24, 2026 10:50
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.

2 participants