From c2c3f6becf7b2946a13f70fc791c3a0548781456 Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Fri, 15 May 2020 02:53:05 +0200 Subject: [PATCH] feat: open Preferences in a new tab (#879) Co-authored-by: Jessica Schilling --- add-on/manifest.common.json | 2 + add-on/src/landing-pages/welcome/page.js | 16 +-- add-on/src/landing-pages/welcome/welcome.css | 4 + add-on/src/options/forms/api-form.js | 6 +- add-on/src/options/forms/dnslink-form.js | 8 +- add-on/src/options/forms/experiments-form.js | 15 ++- add-on/src/options/forms/file-import-form.js | 7 +- add-on/src/options/forms/gateways-form.js | 12 +- .../src/options/forms/global-toggle-form.js | 2 +- add-on/src/options/forms/ipfs-node-form.js | 6 +- add-on/src/options/options.css | 116 +++++----------- add-on/src/options/options.html | 18 ++- add-on/src/options/options.js | 5 - add-on/src/popup/quick-import.js | 2 +- package.json | 4 +- yarn.lock | 126 ++++++++++-------- 16 files changed, 165 insertions(+), 184 deletions(-) diff --git a/add-on/manifest.common.json b/add-on/manifest.common.json index 4bc833a15..556bd976b 100644 --- a/add-on/manifest.common.json +++ b/add-on/manifest.common.json @@ -24,6 +24,8 @@ "default_popup": "dist/popup/browser-action/index.html" }, "options_ui": { + "open_in_tab": true, + "browser_style": false, "page": "dist/options/options.html" }, "web_accessible_resources": [ diff --git a/add-on/src/landing-pages/welcome/page.js b/add-on/src/landing-pages/welcome/page.js index 811841064..b846fc50c 100644 --- a/add-on/src/landing-pages/welcome/page.js +++ b/add-on/src/landing-pages/welcome/page.js @@ -57,7 +57,7 @@ const renderCompanionLogo = (i18n, isIpfsOnline) => { } const renderWelcome = (i18n, peerCount, onOpenWebUi) => { - const anchorClass = 'white link underline-under hover-aqua' + const anchorClass = 'aqua hover-white' const copyClass = 'mv0 tc lh-copy f5' const svgWidth = 80 @@ -94,7 +94,7 @@ const renderWelcome = (i18n, peerCount, onOpenWebUi) => { const renderInstallSteps = (i18n, isIpfsOnline) => { const copyClass = 'mv0 white f5 lh-copy' - const anchorClass = 'white link underline-under hover-aqua' + const anchorClass = 'aqua hover-white' const stateUnknown = isIpfsOnline === null return html` @@ -117,9 +117,9 @@ const renderInstallSteps = (i18n, isIpfsOnline) => { ======================================================== */ const renderResources = (i18n) => { - const labelClass = 'aqua mb1' + const labelClass = 'ttu tracked f6 fw4 teal mt0 mb3' const copyClass = 'mt0 mb4 lh-copy' - const anchorClass = 'navy link underline-under hover-aqua' + const anchorClass = 'link underline-under hover-aqua' return html`