Skip to content

fix(email): offer Gmail, Outlook or copy when an email link is clicked - #77

Merged
ZeeshanAdilButt merged 1 commit into
mainfrom
fix/partnership-email-buttons
Oct 28, 2026
Merged

ZeeshanAdilButt merged 1 commit into
mainfrom
fix/partnership-email-buttons

Conversation

@ZeeshanAdilButt

Copy link
Copy Markdown
Member

Reported by a member: Start a partnership and Become a mentor did nothing. They are mailto links, which only work when the device has a default email app; Chrome on Windows and many phones have none.

  • New EmailChooser in the root layout catches clicks on any mailto link on the site (partnership buttons, Get involved menu, footer, brand, careers, fellowship, DWOSI and others)
  • It opens a small menu: Gmail, Outlook, Your email app (the original mailto) and Copy address, with the subject and body from the link filled in
  • Opens below the link, or above it near the bottom of the screen; Escape, outside clicks, scroll and resize close it; focus moves into it
  • Modifier clicks still behave natively

Checked in the browser: Start a partnership opens it with to=info@devweekends.com and subject Partnering with Dev Weekends; MindMaster in the Get involved menu opens it with Invitation to MindMaster, without leaving the page.

A mailto link does nothing on devices without a default email app, so
buttons like Start a partnership and Become a mentor looked broken. A
small chooser now opens on any mailto link with Gmail, Outlook, the
email app or Copy address, with the subject and body filled in.
@ZeeshanAdilButt
ZeeshanAdilButt merged commit 0971bec into main Oct 28, 2026
2 checks passed
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