From 248f80df409d8d3260d5112ccfdc3f1e2309db2b Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Mon, 25 Apr 2016 18:04:28 +0300 Subject: [PATCH] fix #24 black 'hit' states on button Former-commit-id: 8f7e1d6aa5db99f5be946cafaed31a053d8e9218 --- src/syng_im/components/chat/chat_message.cljs | 3 ++- src/syng_im/components/chat/input/simple_command.cljs | 3 ++- src/syng_im/components/chat/plain_message_input.cljs | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/syng_im/components/chat/chat_message.cljs b/src/syng_im/components/chat/chat_message.cljs index 2e9c7696c2..1275c001f4 100644 --- a/src/syng_im/components/chat/chat_message.cljs +++ b/src/syng_im/components/chat/chat_message.cljs @@ -176,7 +176,8 @@ (let [commands @commands-atom {:keys [command content]} (parse-command-request-msg-content commands content)] [touchable-highlight {:onPress (fn [] - (set-chat-command msg-id command))} + (set-chat-command msg-id command)) + :underlay-color :transparent} [view {:style {:paddingRight 16}} [view {:style (merge {:borderRadius 14 :padding 12} diff --git a/src/syng_im/components/chat/input/simple_command.cljs b/src/syng_im/components/chat/input/simple_command.cljs index f8c678d369..2e45c0662f 100644 --- a/src/syng_im/components/chat/input/simple_command.cljs +++ b/src/syng_im/components/chat/input/simple_command.cljs @@ -68,7 +68,8 @@ message] (if (< 0 (count message)) [touchable-highlight {:on-press (fn [] - (send-command chat-id command message))} + (send-command chat-id command message)) + :underlay-color :transparent} [view {:style {:marginTop 10 :marginRight 10 :width 36 diff --git a/src/syng_im/components/chat/plain_message_input.cljs b/src/syng_im/components/chat/plain_message_input.cljs index f9b37f364c..3ddbc9be19 100644 --- a/src/syng_im/components/chat/plain_message_input.cljs +++ b/src/syng_im/components/chat/plain_message_input.cljs @@ -70,7 +70,8 @@ (when (or (< 0 (count input-message)) (< 0 (count @staged-commands-atom))) [touchable-highlight {:on-press (fn [] - (send @chat input-message))} + (send @chat input-message)) + :underlay-color :transparent} [view {:style {:marginTop 10 :marginRight 10 :width 36