From 21ece29eab80de4af2c606a65b54c13764b04c93 Mon Sep 17 00:00:00 2001 From: Suguru Hirahara Date: Sat, 3 Dec 2016 23:50:28 +0900 Subject: [PATCH 1/3] Refactor about:preferences#payments (part 1) 1. Refactored about:preferences#payments (titleBar and walletBar) - Partly addresses #5494 2. Applied vertical-top to the right element - Fixes #5962 3. Refactored dialog on about:preferences#payments (l10n) - Closes #6007 4. Refactored Brave wallet modal dialog (part 1) - Fixes #5785 based on https://github.com/luixxiul/browser-laptop/commit/2327e9eca53eb4a637dd4c3e3a2a1d1f613c2fbc 5. Replaced the button on the modal dialog with the SVG icon Auditors: @bradleyrichter @bsclifton Test Plan 1: 1. Make sure paymentsMessage and walletBar appears at the same place by toggling the switch off/on 2. Set the toggle to on 3. Make sure every button in titleBar and walletBar works 4. Make sure height of the fund select box and account balance box is equal 5. Make sure the loading message and the question mark is aligned center 6. Make sure no button label is wrapped Test Plan 2: make sure the row of the ledger table on about:payments is aligned horizontally Test Plan 3: 1. Disable Coinbase via VPN 2. Make sure every button on the dialog on about:preferences#payments works Test Plan 4: 1. Disable Coinbase via VPN 2. Make sure the grey footer no longer appears on the Add funds dialog Test Plan 5: 1. Make sure the top right button on the modal dialog works --- js/about/preferences.js | 20 +-- js/components/modalOverlay.js | 2 +- less/about/preferences.less | 280 ++++++++++++++++++++++------------ less/modalOverlay.less | 55 ++----- 4 files changed, 205 insertions(+), 152 deletions(-) diff --git a/js/about/preferences.js b/js/about/preferences.js index 1a2667e97ac..c5e503bd5b5 100644 --- a/js/about/preferences.js +++ b/js/about/preferences.js @@ -339,7 +339,7 @@ class BitcoinDashboard extends ImmutableComponent { } get qrcodeOverlayFooter () { if (coinbaseCountries.indexOf(this.props.ledgerData.get('countryCode')) > -1) { - return
+ return