Skip to content

feat(settings): create ButtonPasskeySignin component#19986

Merged
MagentaManifold merged 1 commit intomainfrom
FXA-12906
Feb 9, 2026
Merged

feat(settings): create ButtonPasskeySignin component#19986
MagentaManifold merged 1 commit intomainfrom
FXA-12906

Conversation

@MagentaManifold
Copy link
Contributor

@MagentaManifold MagentaManifold commented Feb 3, 2026

Because

  • we need a new button component for passkey sign in

This pull request

  • creates ButtonPasskeySignin

Issue that this pull request solves

Closes: FXA-12906

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Default:
image
Loading:
image

Other information (Optional)

Any other information that is important to this pull request.

@MagentaManifold
Copy link
Contributor Author

The loading icon is a bit off-center, so I'm waiting on UX for a centered asset. Otherwise ready for review

@MagentaManifold MagentaManifold marked this pull request as ready for review February 3, 2026 19:37
@MagentaManifold MagentaManifold requested review from a team as code owners February 3, 2026 19:37
@@ -0,0 +1,6 @@
## ButtonPasskeySignin

button-passkey-signin = Sign in with Passkey
Copy link
Contributor

Choose a reason for hiding this comment

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

lowercase passkey :)
Also, I'm not sure if passkey/passkeys may be tricky to localize. Maybe this resource is helpful for at least a few locales? @bcolsson

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree with lower casing passkey.
Passkey has come up in Firefox already, so I assume locales will make them consistent there.

}: ButtonPasskeySigninProps) => {
const buttonText = loading ? (
<>
<LoadingArrowIcon className="h-5 w-5 me-4 animate-spin" ariaHidden />
Copy link
Contributor

Choose a reason for hiding this comment

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

I agree with using ariaHidden for these icons 👍

I'm finding the spinning a bit fast, which might be because we have it set to spin: 'rotate 0.8s linear infinite' in our tailwind config. This works alright for larger animations, but maybe not for such a small icon. We may want to add an additional spin-slow option with something closer to 1.2s, maybe with ease-in-out?

Good news is that svgs in fxa-settings are already set, via tailwind config, to respect prefers-reduced-motion

@MagentaManifold MagentaManifold force-pushed the FXA-12906 branch 2 times, most recently from 05dfd62 to 5325cff Compare February 6, 2026 16:20
Copy link
Contributor

@vpomerleau vpomerleau left a comment

Choose a reason for hiding this comment

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

Now that I'm seeing the animation with ease-in-out, I think linear might actually look better. Other than that this looks great to me! Thanks for the updates 👍

Because:

* we need a new button component for passkey sign in

This commit:

* creates ButtonPasskeySignin

Closes FXA-12906
@MagentaManifold MagentaManifold merged commit 5a76a54 into main Feb 9, 2026
21 checks passed
@MagentaManifold MagentaManifold deleted the FXA-12906 branch February 9, 2026 19:06
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.

3 participants