From 574057c596c7b6967011b628774bb7178b8012d9 Mon Sep 17 00:00:00 2001 From: yan Date: Fri, 24 Mar 2017 12:04:40 -0400 Subject: [PATCH] make all info circles in preferences clickable (#7864) fix #5758 Test Plan: 1. go to about:preferences#plugins 2. all the info circle icons should be clickable --- .../components/preferences/pluginsTab.js | 16 ++++++++++++---- less/about/preferences.less | 1 + 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/app/renderer/components/preferences/pluginsTab.js b/app/renderer/components/preferences/pluginsTab.js index 213b5045ab2..2cefa0e3072 100644 --- a/app/renderer/components/preferences/pluginsTab.js +++ b/app/renderer/components/preferences/pluginsTab.js @@ -36,8 +36,16 @@ class PluginsTab extends ImmutableComponent { aboutActions.setResourceEnabled(widevine, e.target.value) } + infoCircle (location) { + return + } + render () { const braveWikiLink = 'https://github.com/brave/browser-laptop/wiki' + const flashInfoLink = `${braveWikiLink}/Flash-Support-Deprecation-Proposal#troubleshooting-flash-issues` return
@@ -46,7 +54,7 @@ class PluginsTab extends ImmutableComponent { { isDarwin() || isWindows() ?
- + {this.infoCircle(appConfig.flash.installUrl)}   }
- + {this.infoCircle(flashInfoLink)}   {'wiki'}. + title={flashInfoLink}>{'wiki'}.
diff --git a/less/about/preferences.less b/less/about/preferences.less index 229e7fc70fe..15d523ed0e8 100644 --- a/less/about/preferences.less +++ b/less/about/preferences.less @@ -107,6 +107,7 @@ a { margin-top: 0; .flashInfoIcon { + cursor: pointer; padding: 5px; } }