Commit e630595
authored
chore: update selected item state background color (MetaMask#23894)
## **Description**
Updating most instances of selected item background color to
`colors.background.muted`
## **Changelog**
CHANGELOG entry:null
## **Related issues**
Fixes:
Region Picker: https://consensyssoftware.atlassian.net/browse/MDP-280
Network Picker: https://consensyssoftware.atlassian.net/browse/MDP-239
Sort: https://consensyssoftware.atlassian.net/browse/MDP-243
## **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**
### Network Manager
| before | after |
| -------- | ------- |
|

|

|
### RPC Selection
| before | after |
| -------- | ------- |
|

|

|
### Sort
| before | after |
| -------- | ------- |
|

|

|
### Payment Selector
| before | after |
| -------- | ------- |
|

|

|
### Region Picker
| before | after |
| -------- | ------- |
|

|

|
### Select Network
| before | after |
| -------- | ------- |
|

|

|
### **Before**
`~`
### **After**
`~`
## **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**
- [x] I've manually tested the PR (e.g. pull and build branch, run the
app, test code being changed).
- [x] 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]
> Updates selected item visuals across lists/selectors to use
`colors.background.muted` and drops the side underlay bar indicator,
with snapshots adjusted.
>
> - **Styling/UX**:
> - Use `colors.background.muted` for selected states in
`ListItemMultiSelect`, `ListItemSelect`, `ListItemMultiSelectButton`,
and downstream UI (account/network/region/token selectors, permissions
screens).
> - Remove underlay side bar visuals (`underlayBar`, width strip) and
related props/tests; retain simple full-row underlay where applicable.
> - **Components**:
> - `components-temp/ListItemMultiSelectButton`: selected container
background updated; removed underlay view rendering; tests simplified
(icon/press only).
> - `components/List/ListItemSelect`: underlay color changed; removed
`underlayBar`; kept minimal `underlay` view.
> - `components/List/ListItemMultiSelect`: underlay color changed.
> - Remove unused constant `SELECTABLE_ITEM_UNDERLAY_ID`.
> - **Tests/Snapshots**:
> - Snapshot updates to reflect color change (`#4459ff1a` → `#3c4d9d0f`)
and removal of side bar indicator across numerous selector/modal views.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
9dbd116. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent fa777c2 commit e630595
20 files changed
Lines changed: 39 additions & 499 deletions
File tree
- app
- component-library
- components-temp/ListItemMultiSelectButton
- components/List
- ListItemMultiSelect
- ListItemSelect
- components
- UI
- CaipAccountSelectorList/__snapshots__
- EvmAccountSelectorList/__snapshots__
- NetworkSelectorList/__snapshots__
- Ramp
- Aggregator/components/RegionSelectorModal/__snapshots__
- Deposit/Views/Modals
- PaymentMethodSelectorModal/__snapshots__
- RegionSelectorModal/__snapshots__
- TokenSelectorModal/__snapshots__
- Views
- AccountConnect/AccountConnectMultiSelector/__snapshots__
- AccountPermissions/__snapshots__
- AddressSelector/__snapshots__
- NetworkConnect/NetworkConnectMultiSelector/__snapshots__
- NetworkSelector
- RpcSelectionModal/__snapshots__
- __snapshots__
Lines changed: 1 addition & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 36 | | |
50 | 37 | | |
51 | 38 | | |
| |||
69 | 56 | | |
70 | 57 | | |
71 | 58 | | |
72 | | - | |
| 59 | + | |
73 | 60 | | |
74 | 61 | | |
75 | 62 | | |
| |||
app/component-library/components-temp/ListItemMultiSelectButton/ListItemMultiSelectButton.test.tsx
Lines changed: 0 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 21 | | |
40 | 22 | | |
41 | 23 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | 60 | | |
66 | 61 | | |
67 | 62 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Lines changed: 0 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 11 | | |
15 | 12 | | |
16 | 13 | | |
| |||
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 43 | | |
51 | 44 | | |
52 | 45 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
| 42 | + | |
45 | 43 | | |
46 | 44 | | |
47 | 45 | | |
| |||
Lines changed: 4 additions & 116 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | 251 | | |
280 | 252 | | |
281 | 253 | | |
| |||
627 | 599 | | |
628 | 600 | | |
629 | 601 | | |
630 | | - | |
| 602 | + | |
631 | 603 | | |
632 | 604 | | |
633 | 605 | | |
| |||
770 | 742 | | |
771 | 743 | | |
772 | 744 | | |
773 | | - | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | 745 | | |
802 | 746 | | |
803 | 747 | | |
| |||
1112 | 1056 | | |
1113 | 1057 | | |
1114 | 1058 | | |
1115 | | - | |
| 1059 | + | |
1116 | 1060 | | |
1117 | 1061 | | |
1118 | 1062 | | |
| |||
1292 | 1236 | | |
1293 | 1237 | | |
1294 | 1238 | | |
1295 | | - | |
1296 | | - | |
1297 | | - | |
1298 | | - | |
1299 | | - | |
1300 | | - | |
1301 | | - | |
1302 | | - | |
1303 | | - | |
1304 | | - | |
1305 | | - | |
1306 | | - | |
1307 | | - | |
1308 | | - | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
1314 | | - | |
1315 | | - | |
1316 | | - | |
1317 | | - | |
1318 | | - | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | 1239 | | |
1324 | 1240 | | |
1325 | 1241 | | |
| |||
1671 | 1587 | | |
1672 | 1588 | | |
1673 | 1589 | | |
1674 | | - | |
| 1590 | + | |
1675 | 1591 | | |
1676 | 1592 | | |
1677 | 1593 | | |
| |||
1851 | 1767 | | |
1852 | 1768 | | |
1853 | 1769 | | |
1854 | | - | |
1855 | | - | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
1859 | | - | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
1863 | | - | |
1864 | | - | |
1865 | | - | |
1866 | | - | |
1867 | | - | |
1868 | | - | |
1869 | | - | |
1870 | | - | |
1871 | | - | |
1872 | | - | |
1873 | | - | |
1874 | | - | |
1875 | | - | |
1876 | | - | |
1877 | | - | |
1878 | | - | |
1879 | | - | |
1880 | | - | |
1881 | | - | |
1882 | 1770 | | |
1883 | 1771 | | |
1884 | 1772 | | |
| |||
0 commit comments