Storybooks for commit 9c818520876ad88b493b99f76c7d00591151e296

Date
6/2/2026, 7:53:35 PM UTC
Summary
fix(settings): record Glean element-clicks swallowed by stopPropagation
Description
Because:
 - Settings buttons that open a modal call event.stopPropagation() to keep the
   opening click from bubbling to the modal's outside-click handler and closing
   it. Glean's auto-element-click listener is a bubble-phase listener on
   document, so stopPropagation also stops those clicks from being recorded.
   account_pref_passkey_delete_submit, two_step_auth_disable_click, and
   revealModal primary CTAs (e.g. account_pref_two_step_auth_add_click) never
   reached Looker.

This commit:
 - Records the click explicitly via GleanMetrics.handleClickEvent in the passkey
   delete handler and in ModalButton (guarded on gleanDataAttrs), preserving the
   stopPropagation modal behavior.
 - Plumbs ctaGleanDataAttrs into the primary ModalButton, which previously
   received no glean data attrs at all.
 - Adds regression tests for the passkey delete click and both modal buttons.

Closes #FXA-13881