Skip to content

fix(web): identical hit area for the mail-connect modal buttons - #340

Open
oratis wants to merge 1 commit into
mainfrom
claude/mail-connect-button-hitarea
Open

fix(web): identical hit area for the mail-connect modal buttons#340
oratis wants to merge 1 commit into
mainfrom
claude/mail-connect-button-hitarea

Conversation

@oratis

@oratis oratis commented Aug 2, 2026

Copy link
Copy Markdown
Owner

The connect-mailbox modal has two accent action buttons — "Open Google App
Passwords ↗"
(.mm-link) and "Connect →" (.dm-start) — that were
visibly different sizes, so their click/hit areas didn't match:

font-size padding
.mm-link (before) 12.5px 6px 12px
.dm-start 13px 8px 16px

Matched .mm-link to .dm-start's box. Two follow-on details:

  • Dropped an inline-flex I first added to .mm-link — an <a> renders it
    ~0.5px shorter than a <button> under flex cross-sizing.
  • Pinned both to line-height: 1.2 (a font-independent ratio) to erase the last
    sub-pixel <a>-vs-<button> gap. The .dm-start change is a ~0.1px no-op
    visually and makes its box explicit rather than UA-dependent.

Verification

Rendered the real MAIN_HTML and measured both buttons in-browser:

before : mm-link 33.0px (12.5px / 6px 12px)  ·  dm-start 33.5px (13px / 8px 16px)
after  : both 33.59px · 13px · line-height 15.6px · padding 8px 16px · border 1px
         → IDENTICAL_HIT_AREA: true

MAIN_HTML snapshot refreshed; tsc --noEmit clean; full suite 1542 pass / 0 fail.

…al hit area

"Open Google App Passwords" (.mm-link) and "Connect" (.dm-start) were different
sizes (12.5px/6px-12px vs 13px/8px-16px), so their click areas did not match.
Match .mm-link to .dm-start's box, drop an inline-flex that made the <a> ~0.5px
shorter than the <button>, and pin both to line-height:1.2 for exact parity.
Measured in-browser: both 33.59px, identical padding/font/line-height. Snapshot
refreshed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.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.

1 participant