Commit e48efc9
chore(runway): cherry-pick feat(card): cp-7.64.0 change CardHome button colors (#25737)
- feat(card): cp-7.64.0 change CardHome button colors (#25728)
<!--
Please submit this PR as a draft initially.
Do not mark it as "Ready for review" until the template has been
completely filled out, and PR status checks have passed at least once.
-->
## **Description**
<!--
Write a short description of the changes included in this pull request,
also include relevant motivation and context. Have in mind the following
questions:
1. What is the reason for the change?
2. What is the improvement/solution?
-->
Change CardHome button colors
## **Changelog**
<!--
If this PR is not End-User-Facing and should not show up in the
CHANGELOG, you can choose to either:
1. Write `CHANGELOG entry: null`
2. Label with `no-changelog`
If this PR is End-User-Facing, please write a short User-Facing
description in the past tense like:
`CHANGELOG entry: Added a new tab for users to see their NFTs`
`CHANGELOG entry: Fixed a bug that was causing some NFTs to flicker`
(This helps the Release Engineer do their job more quickly and
accurately)
-->
CHANGELOG entry:
## **Related issues**
Fixes:
## **Manual testing steps**
```gherkin
Feature: my feature name
Scenario: user [verb for user action]
Given [describe expected initial app state]
When user [verb for user action]
Then [describe expected outcome]
```
## **Screenshots/Recordings**
<!-- If applicable, add screenshots and/or recordings to visualize the
before and after of your change. -->
### **Before**
<!-- [screenshots/recordings] -->
<img width="200" height="900" alt="image"
src="https://github.com/user-attachments/assets/31e5700c-2387-4c73-a71a-6576036e2f95"
/>
### **After**
<!-- [screenshots/recordings] -->
<img width="200" height="900" alt="image"
src="https://github.com/user-attachments/assets/64bb8951-f334-406e-a916-d0070723bc28"
/>
## **Pre-merge author checklist**
- [x] I've followed [MetaMask Contributor
Docs](https://github.com/MetaMask/contributor-docs) and [MetaMask Mobile
Coding
Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md).
- [x] I've completed the PR template to the best of my ability
- [x] I've included tests if applicable
- [x] I've documented my code using [JSDoc](https://jsdoc.app/) format
if applicable
- [x] I've applied the right labels on the PR (see [labeling
guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)).
Not required for external contributors.
## **Pre-merge reviewer checklist**
- [ ] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [ ] I confirm that this PR addresses all acceptance criteria described
in the ticket it closes and includes the necessary testing evidence such
as recordings and or screenshots.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Low Risk**
> Purely UI styling changes (button variant/color updates) with no
logic, data, or navigation changes; risk is limited to visual
regressions and snapshot/test updates.
>
> **Overview**
> Updates `CardHome` CTA styling by switching the main action buttons
(`Add funds`, `Enable card`, `Change asset`, and error `Try again`) from
`ButtonVariants.Secondary` to `ButtonVariants.Primary`.
>
> Refreshes the `CardHome` Jest snapshots to reflect the new primary
button appearance (dark background with white text, removing the
previous secondary styling).
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
61ad41d. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Co-authored-by: Ale Machado <alejandro@macha.do>
[51f9d36](51f9d36)
Co-authored-by: Bruno Nascimento <brunonascimentodev@gmail.com>
Co-authored-by: Ale Machado <alejandro@macha.do>1 parent 94ba5a5 commit e48efc9
2 files changed
Lines changed: 13 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
658 | 658 | | |
659 | 659 | | |
660 | 660 | | |
661 | | - | |
| 661 | + | |
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
| |||
679 | 679 | | |
680 | 680 | | |
681 | 681 | | |
682 | | - | |
| 682 | + | |
683 | 683 | | |
684 | 684 | | |
685 | 685 | | |
| |||
692 | 692 | | |
693 | 693 | | |
694 | 694 | | |
695 | | - | |
| 695 | + | |
696 | 696 | | |
697 | 697 | | |
698 | 698 | | |
| |||
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
708 | | - | |
| 708 | + | |
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
892 | | - | |
| 892 | + | |
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| |||
Lines changed: 8 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
956 | 956 | | |
957 | 957 | | |
958 | 958 | | |
959 | | - | |
960 | | - | |
| 959 | + | |
961 | 960 | | |
962 | | - | |
963 | 961 | | |
964 | 962 | | |
965 | 963 | | |
| |||
974 | 972 | | |
975 | 973 | | |
976 | 974 | | |
977 | | - | |
| 975 | + | |
978 | 976 | | |
979 | 977 | | |
980 | 978 | | |
| |||
996 | 994 | | |
997 | 995 | | |
998 | 996 | | |
999 | | - | |
1000 | | - | |
| 997 | + | |
1001 | 998 | | |
1002 | | - | |
1003 | 999 | | |
1004 | 1000 | | |
1005 | 1001 | | |
| |||
1014 | 1010 | | |
1015 | 1011 | | |
1016 | 1012 | | |
1017 | | - | |
| 1013 | + | |
1018 | 1014 | | |
1019 | 1015 | | |
1020 | 1016 | | |
| |||
2301 | 2297 | | |
2302 | 2298 | | |
2303 | 2299 | | |
2304 | | - | |
2305 | | - | |
| 2300 | + | |
2306 | 2301 | | |
2307 | | - | |
2308 | 2302 | | |
2309 | 2303 | | |
2310 | 2304 | | |
| |||
2319 | 2313 | | |
2320 | 2314 | | |
2321 | 2315 | | |
2322 | | - | |
| 2316 | + | |
2323 | 2317 | | |
2324 | 2318 | | |
2325 | 2319 | | |
| |||
2341 | 2335 | | |
2342 | 2336 | | |
2343 | 2337 | | |
2344 | | - | |
2345 | | - | |
| 2338 | + | |
2346 | 2339 | | |
2347 | | - | |
2348 | 2340 | | |
2349 | 2341 | | |
2350 | 2342 | | |
| |||
2359 | 2351 | | |
2360 | 2352 | | |
2361 | 2353 | | |
2362 | | - | |
| 2354 | + | |
2363 | 2355 | | |
2364 | 2356 | | |
2365 | 2357 | | |
| |||
0 commit comments