From 6e0d18f76de3b79cae57360119a584f8fbfd6c7c Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 16 Aug 2018 20:05:01 +0300 Subject: [PATCH] [#5439] hide passwords from accessibility services --- src/status_im/ui/screens/accounts/create/views.cljs | 3 ++- src/status_im/ui/screens/accounts/login/views.cljs | 3 ++- src/status_im/ui/screens/accounts/recover/views.cljs | 3 ++- src/status_im/ui/screens/wallet/send/views.cljs | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/status_im/ui/screens/accounts/create/views.cljs b/src/status_im/ui/screens/accounts/create/views.cljs index 6d0a71285f..3c401a1e92 100644 --- a/src/status_im/ui/screens/accounts/create/views.cljs +++ b/src/status_im/ui/screens/accounts/create/views.cljs @@ -72,7 +72,8 @@ [components.common/logo styles/logo]] ^{:key (str "step" step)} [react/view components.styles/flex - [react/view {:style styles/input-container} + [react/view {:style styles/input-container + :important-for-accessibility :no-hide-descendants} [input step error] [react/text {:style styles/input-description} (get-in steps [step :input-description])]] diff --git a/src/status_im/ui/screens/accounts/login/views.cljs b/src/status_im/ui/screens/accounts/login/views.cljs index 78624e3334..548f4f3354 100644 --- a/src/status_im/ui/screens/accounts/login/views.cljs +++ b/src/status_im/ui/screens/accounts/login/views.cljs @@ -59,7 +59,8 @@ [react/view styles/login-view [react/view styles/login-badge-container [account-login-badge photo-path name] - [react/view styles/password-container + [react/view {:style styles/password-container + :important-for-accessibility :no-hide-descendants} [text-input/text-input-with-label {:label (i18n/label :t/password) :placeholder (i18n/label :t/password) diff --git a/src/status_im/ui/screens/accounts/recover/views.cljs b/src/status_im/ui/screens/accounts/recover/views.cljs index c7c5405b4a..5ca80a0691 100644 --- a/src/status_im/ui/screens/accounts/recover/views.cljs +++ b/src/status_im/ui/screens/accounts/recover/views.cljs @@ -37,7 +37,8 @@ (defview password-input [password] (letsubs [error [:get-in [:accounts/recover :password-error]]] - [react/view {:margin-top 10} + [react/view {:style {:margin-top 10} + :important-for-accessibility :no-hide-descendants} [text-input/text-input-with-label {:label (i18n/label :t/password) :placeholder (i18n/label :t/enter-password) diff --git a/src/status_im/ui/screens/wallet/send/views.cljs b/src/status_im/ui/screens/wallet/send/views.cljs index 7f48143362..d3f9994fdc 100644 --- a/src/status_im/ui/screens/wallet/send/views.cljs +++ b/src/status_im/ui/screens/wallet/send/views.cljs @@ -81,7 +81,8 @@ :accessibility-label :signing-phrase-text} signing-phrase]] [react/i18n-text {:style styles/signing-phrase-description :key message-label}] - [react/view styles/password-container + [react/view {:style styles/password-container + :important-for-accessibility :no-hide-descendants} [react/text-input {:auto-focus true :secure-text-entry true