feat: migrate Button (web3auth scope)#27810
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
0832765 to
b5fd3e6
Compare
b5fd3e6 to
40ba4e7
Compare
🔍 Smart E2E Test Selection⏭️ Smart E2E selection skipped - draft PR All E2E tests pre-selected. |
|
✅ E2E Fixture Validation — Schema is up to date |
|
|
|
||
| {isSeedlessPasswordOutdated ? ( | ||
| <Button | ||
| <OldButton |
There was a problem hiding this comment.
This was previously using Button, but now uses OldButton which is deprecated. Any specific reason for it?
There was a problem hiding this comment.
Yes, there is no direct equivalent of Link varinat in design repo at the moment. Closest options are Tertiary or TextButton, but there is also no 1:1 migration. So I wanted to split up the work and for all .Link variants keep the old component and migrate it later when we'll have a clear path on migration 😊
| import { MetricsEventBuilder } from '../../../core/Analytics/MetricsEventBuilder'; | ||
| import Checkbox from '../../../component-library/components/Checkbox'; | ||
| import Button, { | ||
| import OldButton, { |
There was a problem hiding this comment.
This was previously using Button, but now uses OldButton which is deprecated. Any specific reason for it?



Description
Replace deprecated
Buttonusage with DSRN package.Changelog
CHANGELOG entry: null
Related issues
Fixes: https://consensyssoftware.atlassian.net/browse/DSYS-445
Manual testing steps
Screenshots/Recordings
Before
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-03-25.at.17.16.56.mov
After
Simulator.Screen.Recording.-.iPhone.17.Pro.-.2026-03-25.at.17.17.12.mov
Pre-merge author checklist
Pre-merge reviewer checklist
Note
Medium Risk
Touches critical onboarding/login entry points by swapping button components and props; risk is mainly UI/interaction regressions (disabled/loading/accessibility) rather than logic changes.
Overview
Migrates several onboarding/authentication screens from the deprecated component-library
Buttonto the design-systemButton(DSRN), updating props (variant,isFullWidth,isDisabled,isLoading) and switching to children-based labels.Link-style buttons that aren’t yet migrated remain on the old component (
OldButton). Tests and snapshots are updated accordingly, including switching assertions totoBeDisabled()/toBeEnabled()and reflecting the new button render/accessibility structure.Written by Cursor Bugbot for commit 40ba4e7. This will update automatically on new commits. Configure here.