From 1d85a8cfa7ad3ab8994d5fb15b3f20be90943cc2 Mon Sep 17 00:00:00 2001 From: SleepWalker Date: Thu, 2 Jun 2016 21:47:50 +0300 Subject: [PATCH] Normalize tap styles for webkit browsers --- src/index.js | 3 +++ src/index.scss | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/src/index.js b/src/index.js index 2a9ce67..40d47fe 100644 --- a/src/index.js +++ b/src/index.js @@ -34,6 +34,9 @@ const store = applyMiddleware( userFactory(store) .then(() => { + // allow :active styles in mobile Safary + document.addEventListener("touchstart", () => {}, true); + ReactDOM.render( diff --git a/src/index.scss b/src/index.scss index 77594b2..085f137 100644 --- a/src/index.scss +++ b/src/index.scss @@ -40,3 +40,12 @@ p { margin: 0; list-style: none; } + +input, +textarea, +button, +select, +label, +a { + -webkit-tap-highlight-color: rgba(0,0,0,0); +}