aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorDan <danjm.com@gmail.com>2018-06-25 20:24:49 +0800
committerDan <danjm.com@gmail.com>2018-06-29 08:15:04 +0800
commitd2845afd898acf6224113832f819d2fe9b3061c6 (patch)
treea93e6d0ecb3ec0df14bf9d7ccd39e792ef36bb4d /ui
parentd5133fb429c313f7bed24e3740eddb1350810b16 (diff)
downloadtangerine-wallet-browser-d2845afd898acf6224113832f819d2fe9b3061c6.tar
tangerine-wallet-browser-d2845afd898acf6224113832f819d2fe9b3061c6.tar.gz
tangerine-wallet-browser-d2845afd898acf6224113832f819d2fe9b3061c6.tar.bz2
tangerine-wallet-browser-d2845afd898acf6224113832f819d2fe9b3061c6.tar.lz
tangerine-wallet-browser-d2845afd898acf6224113832f819d2fe9b3061c6.tar.xz
tangerine-wallet-browser-d2845afd898acf6224113832f819d2fe9b3061c6.tar.zst
tangerine-wallet-browser-d2845afd898acf6224113832f819d2fe9b3061c6.zip
Remove input arrows for send screen amount row on firefox.
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/send/currency-display.js2
-rw-r--r--ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js1
-rw-r--r--ui/app/css/itcss/components/currency-display.scss8
3 files changed, 11 insertions, 0 deletions
diff --git a/ui/app/components/send/currency-display.js b/ui/app/components/send/currency-display.js
index e410bc070..5e2c5fdf6 100644
--- a/ui/app/components/send/currency-display.js
+++ b/ui/app/components/send/currency-display.js
@@ -118,6 +118,7 @@ CurrencyDisplay.prototype.render = function () {
readOnly = false,
inError = false,
onBlur,
+ step,
} = this.props
const { valueToRender } = this.state
@@ -152,6 +153,7 @@ CurrencyDisplay.prototype.render = function () {
width: this.getInputWidth(valueToRender, readOnly),
},
min: 0,
+ step,
}),
h('span.currency-display__currency-symbol', primaryCurrency),
diff --git a/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js b/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js
index 8da36d3b7..6c6189cf9 100644
--- a/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js
+++ b/ui/app/components/send_/send-content/send-amount-row/send-amount-row.component.js
@@ -95,6 +95,7 @@ export default class SendAmountRow extends Component {
primaryCurrency={primaryCurrency || 'ETH'}
selectedToken={selectedToken}
value={amount}
+ step={'any'}
/>
</SendRowWrapper>
)
diff --git a/ui/app/css/itcss/components/currency-display.scss b/ui/app/css/itcss/components/currency-display.scss
index 5f380475a..b1a74dce2 100644
--- a/ui/app/css/itcss/components/currency-display.scss
+++ b/ui/app/css/itcss/components/currency-display.scss
@@ -49,13 +49,19 @@
flex: 1;
max-width: 100%;
+ input[type="number"] {
+ -moz-appearance: textfield;
+ }
+
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
+ -moz-appearance: none;
display: none;
}
input[type="number"]:hover::-webkit-inner-spin-button {
-webkit-appearance: none;
+ -moz-appearance: none;
display: none;
}
}
@@ -68,11 +74,13 @@
.react-numeric-input {
input[type="number"]::-webkit-inner-spin-button {
-webkit-appearance: none;
+ -moz-appearance: none;
display: none;
}
input[type="number"]:hover::-webkit-inner-spin-button {
-webkit-appearance: none;
+ -moz-appearance: none;
display: none;
}
}