From a51d3d9f4c82d1eb3c6f099879c8b6a3fce4176e Mon Sep 17 00:00:00 2001 From: ryanml Date: Tue, 17 Jan 2023 05:52:55 -0700 Subject: [PATCH] Fix MetaMetrics settings toggle styling (#17224) --- app/_locales/en/messages.json | 3 + .../__snapshots__/security-tab.test.js.snap | 107 ++++++++++-------- .../security-tab/security-tab.component.js | 7 +- 3 files changed, 67 insertions(+), 50 deletions(-) diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json index 364a50717..5d27a7181 100644 --- a/app/_locales/en/messages.json +++ b/app/_locales/en/messages.json @@ -2126,6 +2126,9 @@ "metametricsOptInDescription": { "message": "MetaMask would like to gather usage data to better understand how our users interact with the extension. This data will be used to continually improve the usability and user experience of our product and the Ethereum ecosystem." }, + "metrics": { + "message": "Metrics" + }, "mismatchedChainLinkText": { "message": "verify the network details", "description": "Serves as link text for the 'mismatchedChain' key. This text will be embedded inside the translation for that key." diff --git a/ui/pages/settings/security-tab/__snapshots__/security-tab.test.js.snap b/ui/pages/settings/security-tab/__snapshots__/security-tab.test.js.snap index 8e8ad5763..ce1993d98 100644 --- a/ui/pages/settings/security-tab/__snapshots__/security-tab.test.js.snap +++ b/ui/pages/settings/security-tab/__snapshots__/security-tab.test.js.snap @@ -478,74 +478,83 @@ exports[`Security Tab should match snapshot 1`] = ` + + Metrics +
- - Participate in MetaMetrics -
- Participate in MetaMetrics to help us make MetaMask better + Participate in MetaMetrics -
-
-
-
-
+
+
+
diff --git a/ui/pages/settings/security-tab/security-tab.component.js b/ui/pages/settings/security-tab/security-tab.component.js index a15173a80..abe5c188c 100644 --- a/ui/pages/settings/security-tab/security-tab.component.js +++ b/ui/pages/settings/security-tab/security-tab.component.js @@ -520,7 +520,12 @@ export default class SecurityTab extends PureComponent { {this.renderBatchAccountBalanceRequestsToggle()} {this.renderCollectibleDetectionToggle()}
- {this.renderMetaMetricsOptIn()} + + {this.context.t('metrics')} + +
+ {this.renderMetaMetricsOptIn()} +
); }