bug #4952 - moved the wrong password tooltip a bit up to make the field focusable

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-07-27 14:37:15 +02:00
parent 4a1c8e11a3
commit 81dbc162b7
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
2 changed files with 7 additions and 3 deletions

View File

@ -144,3 +144,7 @@
(def fee-buttons
{:background-color colors/blue})
(def password-error-tooltip
{:bottom-value 15
:color colors/red-light})

View File

@ -33,6 +33,8 @@
opacity-value (animation/create-value 0)]
{:component-did-mount #(send.animations/animate-sign-panel opacity-value bottom-value)}
[react/animated-view {:style (styles/animated-sign-panel bottom-value)}
(when wrong-password?
[tooltip/tooltip (i18n/label :t/wrong-password) styles/password-error-tooltip])
[react/animated-view {:style (styles/sign-panel opacity-value)}
[react/view styles/spinner-container
;;NOTE(goranjovic) - android build doesn't seem to react on change in `:animating` property, so
@ -54,9 +56,7 @@
:on-change-text #(re-frame/dispatch [:wallet.send/set-password (security/mask-data %)])
:style styles/password
:accessibility-label :enter-password-input
:auto-capitalize :none}]
(when wrong-password?
[tooltip/tooltip (i18n/label :t/wrong-password)])]]]))
:auto-capitalize :none}]]]]))
;; "Cancel" and "Sign Transaction >" buttons, signing with password
(defview signing-buttons [spinning? cancel-handler sign-handler sign-label]