Skip to content

Commit ae8afed

Browse files
committed
Make tap-highlight-color fix work for Android devices. Fix necolas#2
1 parent c71f67d commit ae8afed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

normalize.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ video {
3737
/*
3838
* 1. Add vertical scrollbar to <html> element
3939
* Keeps page centred in all browsers regardless of content height
40-
* 2. Remove iOS tap highlight color to prevent entire container being highlighted
40+
* 2. Remove Android and iOS tap highlight color to prevent entire container being highlighted
4141
* www.yuiblog.com/blog/2010/10/01/quick-tip-customizing-the-mobile-safari-tap-highlight-color/
4242
* 3. Remove iOS text size adjust without disabling user zoom
4343
* www.456bereastreet.com/archive/201012/controlling_text_size_in_safari_for_ios_without_disabling_user_zoom/
4444
*/
4545

4646
html {
4747
overflow-y: scroll; /* 1 */
48-
-webkit-tap-highlight-color: transparent; /* 2 */
48+
-webkit-tap-highlight-color: rgba(0,0,0,0); /* 2 */
4949
-webkit-text-size-adjust: 100%; /* 3 */
5050
-ms-text-size-adjust: 100%;
5151
}

0 commit comments

Comments
 (0)