aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2017-10-27 00:59:22 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-10-27 03:26:05 +0800
commitf9fc6cec3b01357dd5bb182b6389426d1f17260a (patch)
tree4e19fcb32d30c717d617468128677a32e422f1c3 /ui
parent220da24f9ab4a57a10bc1fc3e249c511a98ecb46 (diff)
downloadtangerine-wallet-browser-f9fc6cec3b01357dd5bb182b6389426d1f17260a.tar
tangerine-wallet-browser-f9fc6cec3b01357dd5bb182b6389426d1f17260a.tar.gz
tangerine-wallet-browser-f9fc6cec3b01357dd5bb182b6389426d1f17260a.tar.bz2
tangerine-wallet-browser-f9fc6cec3b01357dd5bb182b6389426d1f17260a.tar.lz
tangerine-wallet-browser-f9fc6cec3b01357dd5bb182b6389426d1f17260a.tar.xz
tangerine-wallet-browser-f9fc6cec3b01357dd5bb182b6389426d1f17260a.tar.zst
tangerine-wallet-browser-f9fc6cec3b01357dd5bb182b6389426d1f17260a.zip
eth_sign warning color
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/signature-request.js9
-rw-r--r--ui/app/css/itcss/components/request-signature.scss12
2 files changed, 18 insertions, 3 deletions
diff --git a/ui/app/components/signature-request.js b/ui/app/components/signature-request.js
index a0ecbe8ec..e617fdbd6 100644
--- a/ui/app/components/signature-request.js
+++ b/ui/app/components/signature-request.js
@@ -4,6 +4,8 @@ const inherits = require('util').inherits
const Identicon = require('./identicon')
const connect = require('react-redux').connect
const ethUtil = require('ethereumjs-util')
+const classnames = require('classnames')
+
const PendingTxDetails = require('./pending-personal-msg-details')
const AccountDropdownMini = require('./dropdowns/account-dropdown-mini')
const BinaryRenderer = require('./binary-renderer')
@@ -181,7 +183,12 @@ SignatureRequest.prototype.renderBody = function () {
this.renderRequestInfo(),
- h('div.request-signature__notice', [notice]),
+ h('div.request-signature__notice', {
+ className: classnames({
+ 'request-signature__notice': type === 'personal_sign' || type === 'eth_signTypedData',
+ 'request-signature__warning': type === 'eth_sign',
+ })
+ }, [notice]),
h('div.request-signature__rows', [
diff --git a/ui/app/css/itcss/components/request-signature.scss b/ui/app/css/itcss/components/request-signature.scss
index ee54235d0..d81099bfa 100644
--- a/ui/app/css/itcss/components/request-signature.scss
+++ b/ui/app/css/itcss/components/request-signature.scss
@@ -131,8 +131,8 @@
margin-top: 20px;
}
- &__notice {
- color: #9B9B9B;
+ &__notice,
+ &__warning {
font-family: "Avenir Next";
font-size: 14px;
line-height: 19px;
@@ -142,6 +142,14 @@
width: 100%;
}
+ &__notice {
+ color: $dusty-gray;
+ }
+
+ &__warning {
+ color: $crimson;
+ }
+
&__rows {
height: 100%;
overflow-y: scroll;