refactor: migrate Text to design system in swaps-engineers components#27454
refactor: migrate Text to design system in swaps-engineers components#27454georgewrmarshall wants to merge 1 commit intomainfrom
Conversation
Co-authored-by: George Marshall <georgewrmarshall@users.noreply.github.com>
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection: BlockaidModal also touches security alert UX within the bridge flow, which is part of the transaction confirmation and security review surface. Since SmokeTrade requires SmokeConfirmations for swap/bridge flows (as confirmations are part of the transaction process), SmokeConfirmations must also be selected. There are no changes to controllers, Engine, network management, identity, multi-chain provider, or other platform-wide infrastructure. Therefore, limiting coverage to Trade and Confirmations provides adequate risk-based validation without running unrelated suites. Performance Test Selection: |
|
✅ E2E Fixture Validation — Schema is up to date |
|



Description
Migrates deprecated Text components to @metamask/design-system-react-native in the
@MetaMask/swaps-engineers code owner paths. Part of the ongoing #6887 migration.
Files migrated:
What: Replace app/component-library/components/Texts/Text
imports with Text from @metamask/design-system-react-native.
Why: Part of #6887 — eliminating
deprecated internal Text wrappers in favour of the shared design system component.
[!NOTE]
This PR was produced by the migrate-text-component automation.
Changelog
CHANGELOG entry: null (internal refactor, no user-visible change)
Related issues
Part of: #6887
Manual testing steps
Feature: Text migration visual parity
Scenario: user views affected screens
Given the app is open
When the user navigates to the screen(s) affected by the changed files
Then all text renders correctly with the same visual appearance as before
Screenshots/Recordings
N/A — styling parity migration, no visual change intended.
(If a visual difference is noticed, add before/after screenshots.)
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist- [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
Note
Low Risk
Low risk refactor limited to UI text rendering; main risk is minor visual/style regressions due to updated
TextVariant/TextColormappings and moved alignment/font-weight styling.Overview
Migrates several Bridge UI components off the deprecated internal
component-libraryTextwrapper to@metamask/design-system-react-nativeText.Updates text styling to the design-system API (e.g.,
TextVariant/TextColorrenames,fontWeightprops, andtwClassNamefor centering) and removes now-redundant local text styles.Written by Cursor Bugbot for commit 05d3829. This will update automatically on new commits. Configure here.