Skip to content

Commit 97e89d7

Browse files
Disable tap highlights on iOS (#12299)
* Disable tap highlights on iOS * Update changelog * Update snapshots * Update changelog
1 parent 662905e commit 97e89d7

File tree

4 files changed

+275
-269
lines changed

4 files changed

+275
-269
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
3737
- Deprecate `--no-autoprefixer` flag in the CLI ([#11280](https://github.com/tailwindlabs/tailwindcss/pull/11280))
3838
- Make the Rust based parser the default ([#11394](https://github.com/tailwindlabs/tailwindcss/pull/11394))
3939
- Simplify the `sans` font-family stack ([#11748](https://github.com/tailwindlabs/tailwindcss/pull/11748))
40+
- Disable the tap highlight overlay on iOS ([#12299](https://github.com/tailwindlabs/tailwindcss/pull/12299))
4041

4142
## [3.3.5] - 2023-10-25
4243

src/css/preflight.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
4. Use the user's configured `sans` font-family by default.
2525
5. Use the user's configured `sans` font-feature-settings by default.
2626
6. Use the user's configured `sans` font-variation-settings by default.
27+
7. Disable tap highlights on iOS
2728
*/
2829

2930
html,
@@ -35,6 +36,7 @@ html,
3536
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 */
3637
font-feature-settings: theme('fontFamily.sans[1].fontFeatureSettings', normal); /* 5 */
3738
font-variation-settings: theme('fontFamily.sans[1].fontVariationSettings', normal); /* 6 */
39+
-webkit-tap-highlight-color: transparent; /* 7 */
3840
}
3941

4042
/*

tests/plugins/__snapshots__/preflight.test.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ html, :host {
1616
tab-size: 4;
1717
font-feature-settings: normal;
1818
font-variation-settings: normal;
19+
-webkit-tap-highlight-color: transparent;
1920
font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
2021
line-height: 1.5;
2122
}
@@ -213,6 +214,7 @@ html, :host {
213214
tab-size: 4;
214215
font-feature-settings: normal;
215216
font-variation-settings: normal;
217+
-webkit-tap-highlight-color: transparent;
216218
font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
217219
line-height: 1.5;
218220
}

0 commit comments

Comments
 (0)