Skip to content

Commit

Permalink
Disable tap highlights on iOS (#12299)
Browse files Browse the repository at this point in the history
* Disable tap highlights on iOS

* Update changelog

* Update snapshots

* Update changelog
  • Loading branch information
thecrypticace committed Dec 4, 2023
1 parent 819e1ef commit c8c0af9
Show file tree
Hide file tree
Showing 3 changed files with 305 additions and 301 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Simplify the `sans` font-family stack ([#11748](https://github.com/tailwindlabs/tailwindcss/pull/11748))
- Disable the tap highlight overlay on iOS ([#12299](https://github.com/tailwindlabs/tailwindcss/pull/12299))

## [3.3.6] - 2023-12-04

Expand Down
2 changes: 2 additions & 0 deletions src/css/preflight.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
Expand All @@ -35,6 +36,7 @@ html,
font-family: theme('fontFamily.sans', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"); /* 4 */
font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */
-webkit-tap-highlight-color: transparent; /* 7 */
}

/*
Expand Down
Loading

0 comments on commit c8c0af9

Please sign in to comment.