Skip to content

Commit

Permalink
Remove rectangle shaped background color when tapping buttons in iOS …
Browse files Browse the repository at this point in the history
…Safari
  • Loading branch information
peruukki committed Dec 29, 2024
1 parent 802b96f commit 1504431
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
@use 'styles/vendor/normalize';

// Base
@use 'styles/normalize-custom';
@use 'styles/animations';
@use 'styles/colors';
@use 'styles/sizes';
Expand Down
10 changes: 10 additions & 0 deletions app/src/styles/normalize-custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* Remove rectangle shaped background color when tapping in iOS Safari.
*
* See:
* - https://goulet.dev/posts/fix-css-tap-effects-on-ios/
* - https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-tap-highlight-color
*/
button {
-webkit-tap-highlight-color: transparent;
}

0 comments on commit 1504431

Please sign in to comment.