Skip to content

Commit 16e8c11

Browse files
author
Prime
committed
fix: remove tap highlight white flash
1 parent 8f935a3 commit 16e8c11

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

src/index.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,19 @@ img, video { max-width: 100%; height: auto; }
2525

2626
/* Safe area for notch phones */
2727
.page-content { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
28+
29+
/* Remove tap highlight on all clickable elements */
30+
*, *::before, *::after {
31+
-webkit-tap-highlight-color: transparent !important;
32+
tap-highlight-color: transparent !important;
33+
}
34+
button, a, div, span {
35+
-webkit-touch-callout: none;
36+
-webkit-user-select: none;
37+
user-select: none;
38+
outline: none;
39+
}
40+
button:focus, button:active {
41+
outline: none !important;
42+
background-color: inherit;
43+
}

0 commit comments

Comments
 (0)