Skip to content

Commit edccee8

Browse files
author
Lewis Youl
committed
fix: prevent highlight of element when tapping on mobile
1 parent 4bd3f4f commit edccee8

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

app/javascript/controllers/navbar_controller.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ export default class extends Controller {
44
static targets = ['container']
55

66
toggle() {
7-
console.log('togglin')
87
this.containerTarget.classList.toggle('hidden')
98
}
109
}

app/javascript/stylesheets/application.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@import "tailwindcss/utilities";
44
@import 'codemirror/lib/codemirror.css';
55

6+
* { -webkit-tap-highlight-color: transparent; }
67
.CodeMirror {
78
/* Set height, width, borders, and global font properties here */
89
@apply font-mono p-2 text-sm rounded-br-md rounded-bl-md;

0 commit comments

Comments
 (0)