diff --git a/CHANGELOG.md b/CHANGELOG.md index d54912322afb..106ac478f4e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Deprecate `--no-autoprefixer` flag in the CLI ([#11280](https://github.com/tailwindlabs/tailwindcss/pull/11280)) - Make the Rust based parser the default ([#11394](https://github.com/tailwindlabs/tailwindcss/pull/11394)) - 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.5] - 2023-10-25 diff --git a/src/css/preflight.css b/src/css/preflight.css index bebba4dd2af4..d852cca7ac12 100644 --- a/src/css/preflight.css +++ b/src/css/preflight.css @@ -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, @@ -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 */ } /* diff --git a/tests/plugins/__snapshots__/preflight.test.js.snap b/tests/plugins/__snapshots__/preflight.test.js.snap index fa02b05eaad1..400cb24f31bb 100644 --- a/tests/plugins/__snapshots__/preflight.test.js.snap +++ b/tests/plugins/__snapshots__/preflight.test.js.snap @@ -16,6 +16,7 @@ html, :host { tab-size: 4; font-feature-settings: normal; font-variation-settings: normal; + -webkit-tap-highlight-color: transparent; font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; line-height: 1.5; } @@ -213,6 +214,7 @@ html, :host { tab-size: 4; font-feature-settings: normal; font-variation-settings: normal; + -webkit-tap-highlight-color: transparent; font-family: ui-sans-serif, system-ui, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; line-height: 1.5; } diff --git a/tests/source-maps.test.js b/tests/source-maps.test.js index fe7cfa55a96e..3e31dda2f2d6 100644 --- a/tests/source-maps.test.js +++ b/tests/source-maps.test.js @@ -98,295 +98,296 @@ test('preflight + base have source maps', async () => { "13:2-13 -> 13:2-13", "14:2-31 -> 14:2-31", "15:2-33 -> 15:2-33", - "16:2-121 -> 16:2-121", - "17:2-18 -> 17:2-18", - "18:0 -> 18:0", - "20:0 -> 20:0", - "21:2-22 -> 21:2-22", - "22:2-11 -> 22:2-11", - "23:0 -> 23:0", - "25:0 -> 25:0", - "26:2-16 -> 26:2-16", - "27:2-23 -> 27:2-23", - "28:2-11 -> 28:2-11", - "29:0 -> 29:0", - "31:0 -> 31:0", - "32:2-43 -> 32:2-43", - "33:2-35 -> 33:2-35", - "34:0 -> 34:0", - "36:0 -> 36:0", - "37:2-20 -> 37:2-20", - "38:2-22 -> 38:2-22", - "39:0 -> 39:0", - "41:0 -> 41:0", - "42:2-16 -> 42:2-16", - "43:2-34 -> 43:2-34", - "44:2-26 -> 44:2-26", - "45:0 -> 45:0", - "47:0 -> 47:0", - "48:2-21 -> 48:2-21", - "49:0 -> 49:0", - "51:0 -> 51:0", - "52:2-109 -> 52:2-109", - "53:2-16 -> 53:2-16", - "54:0 -> 54:0", - "56:0 -> 56:0", - "57:2-16 -> 57:2-16", - "58:0 -> 58:0", - "60:0 -> 60:0", - "61:2-26 -> 61:2-26", - "62:2-16 -> 62:2-16", + "16:2-42 -> 16:2-42", + "17:2-121 -> 17:2-121", + "18:2-18 -> 18:2-18", + "19:0 -> 19:0", + "21:0 -> 21:0", + "22:2-22 -> 22:2-22", + "23:2-11 -> 23:2-11", + "24:0 -> 24:0", + "26:0 -> 26:0", + "27:2-16 -> 27:2-16", + "28:2-23 -> 28:2-23", + "29:2-11 -> 29:2-11", + "30:0 -> 30:0", + "32:0 -> 32:0", + "33:2-43 -> 33:2-43", + "34:2-35 -> 34:2-35", + "35:0 -> 35:0", + "37:0 -> 37:0", + "38:2-20 -> 38:2-20", + "39:2-22 -> 39:2-22", + "40:0 -> 40:0", + "42:0 -> 42:0", + "43:2-16 -> 43:2-16", + "44:2-34 -> 44:2-34", + "45:2-26 -> 45:2-26", + "46:0 -> 46:0", + "48:0 -> 48:0", + "49:2-21 -> 49:2-21", + "50:0 -> 50:0", + "52:0 -> 52:0", + "53:2-109 -> 53:2-109", + "54:2-16 -> 54:2-16", + "55:0 -> 55:0", + "57:0 -> 57:0", + "58:2-16 -> 58:2-16", + "59:0 -> 59:0", + "61:0 -> 61:0", + "62:2-26 -> 62:2-26", "63:2-16 -> 63:2-16", - "64:2-20 -> 64:2-20", - "65:0 -> 65:0", - "67:0 -> 67:0", - "68:2-16 -> 68:2-16", - "69:0 -> 69:0", - "71:0 -> 71:0", - "72:2-12 -> 72:2-12", - "73:0 -> 73:0", - "75:0 -> 75:0", - "76:2-16 -> 76:2-16", - "77:2-23 -> 77:2-23", - "78:2-27 -> 78:2-27", - "79:0 -> 79:0", - "81:0 -> 81:0", - "82:2-32 -> 82:2-32", - "83:2-34 -> 83:2-34", - "84:2-22 -> 84:2-22", - "85:2-17 -> 85:2-17", - "86:2-22 -> 86:2-22", + "64:2-16 -> 64:2-16", + "65:2-20 -> 65:2-20", + "66:0 -> 66:0", + "68:0 -> 68:0", + "69:2-16 -> 69:2-16", + "70:0 -> 70:0", + "72:0 -> 72:0", + "73:2-12 -> 73:2-12", + "74:0 -> 74:0", + "76:0 -> 76:0", + "77:2-16 -> 77:2-16", + "78:2-23 -> 78:2-23", + "79:2-27 -> 79:2-27", + "80:0 -> 80:0", + "82:0 -> 82:0", + "83:2-32 -> 83:2-32", + "84:2-34 -> 84:2-34", + "85:2-22 -> 85:2-22", + "86:2-17 -> 86:2-17", "87:2-22 -> 87:2-22", - "88:2-16 -> 88:2-16", - "89:2-11 -> 89:2-11", - "90:2-12 -> 90:2-12", - "91:0 -> 91:0", - "93:0 -> 93:0", - "94:2-22 -> 94:2-22", - "95:0 -> 95:0", - "97:0 -> 97:0", - "98:2-28 -> 98:2-28", - "99:2-25 -> 99:2-25", - "100:2-24 -> 100:2-24", - "101:0 -> 101:0", - "103:0 -> 103:0", - "104:2-15 -> 104:2-15", - "105:0 -> 105:0", - "107:0 -> 107:0", - "108:2-18 -> 108:2-18", - "109:0 -> 109:0", - "111:0 -> 111:0", - "112:2-26 -> 112:2-26", - "113:0 -> 113:0", - "115:0 -> 115:0", - "116:2-14 -> 116:2-14", - "117:0 -> 117:0", - "119:0 -> 119:0", - "120:2-14 -> 120:2-14", - "121:0 -> 121:0", - "123:0 -> 123:0", - "124:2-31 -> 124:2-31", - "125:2-22 -> 125:2-22", - "126:0 -> 126:0", - "128:0 -> 128:0", - "129:2-26 -> 129:2-26", - "130:0 -> 130:0", - "132:0 -> 132:0", - "133:2-28 -> 133:2-28", - "134:2-15 -> 134:2-15", - "135:0 -> 135:0", - "137:0 -> 137:0", - "138:2-20 -> 138:2-20", - "139:0 -> 139:0", - "141:0 -> 141:0", - "142:2-11 -> 142:2-11", - "143:0 -> 143:0", - "145:0 -> 145:0", - "146:2-11 -> 146:2-11", - "147:2-12 -> 147:2-12", - "148:0 -> 148:0", - "150:0 -> 150:0", - "151:2-12 -> 151:2-12", - "152:0 -> 152:0", - "154:0 -> 154:0", - "155:2-11 -> 155:2-11", - "156:2-12 -> 156:2-12", - "157:2-18 -> 157:2-18", - "158:0 -> 158:0", - "160:0 -> 160:0", - "161:2-12 -> 161:2-12", - "162:0 -> 162:0", - "164:0 -> 164:0", - "165:2-18 -> 165:2-18", - "166:0 -> 166:0", - "168:0 -> 168:0", - "169:2-12 -> 169:2-12", - "170:2-16 -> 170:2-16", - "171:0 -> 171:0", - "173:0 -> 173:0", - "174:2-17 -> 174:2-17", - "175:0 -> 175:0", - "177:0 -> 177:0", - "178:2-17 -> 178:2-17", - "179:0 -> 179:0", - "181:0 -> 181:0", - "182:2-24 -> 182:2-24", - "183:2-16 -> 183:2-16", - "184:0 -> 184:0", - "186:0 -> 186:0", - "187:2-17 -> 187:2-17", - "188:2-14 -> 188:2-14", - "189:0 -> 189:0", - "191:0 -> 191:0", - "192:2-15 -> 192:2-15", - "193:0 -> 193:0", - "195:0 -> 195:0", - "196:2-26 -> 196:2-26", + "88:2-22 -> 88:2-22", + "89:2-16 -> 89:2-16", + "90:2-11 -> 90:2-11", + "91:2-12 -> 91:2-12", + "92:0 -> 92:0", + "94:0 -> 94:0", + "95:2-22 -> 95:2-22", + "96:0 -> 96:0", + "98:0 -> 98:0", + "99:2-28 -> 99:2-28", + "100:2-25 -> 100:2-25", + "101:2-24 -> 101:2-24", + "102:0 -> 102:0", + "104:0 -> 104:0", + "105:2-15 -> 105:2-15", + "106:0 -> 106:0", + "108:0 -> 108:0", + "109:2-18 -> 109:2-18", + "110:0 -> 110:0", + "112:0 -> 112:0", + "113:2-26 -> 113:2-26", + "114:0 -> 114:0", + "116:0 -> 116:0", + "117:2-14 -> 117:2-14", + "118:0 -> 118:0", + "120:0 -> 120:0", + "121:2-14 -> 121:2-14", + "122:0 -> 122:0", + "124:0 -> 124:0", + "125:2-31 -> 125:2-31", + "126:2-22 -> 126:2-22", + "127:0 -> 127:0", + "129:0 -> 129:0", + "130:2-26 -> 130:2-26", + "131:0 -> 131:0", + "133:0 -> 133:0", + "134:2-28 -> 134:2-28", + "135:2-15 -> 135:2-15", + "136:0 -> 136:0", + "138:0 -> 138:0", + "139:2-20 -> 139:2-20", + "140:0 -> 140:0", + "142:0 -> 142:0", + "143:2-11 -> 143:2-11", + "144:0 -> 144:0", + "146:0 -> 146:0", + "147:2-11 -> 147:2-11", + "148:2-12 -> 148:2-12", + "149:0 -> 149:0", + "151:0 -> 151:0", + "152:2-12 -> 152:2-12", + "153:0 -> 153:0", + "155:0 -> 155:0", + "156:2-11 -> 156:2-11", + "157:2-12 -> 157:2-12", + "158:2-18 -> 158:2-18", + "159:0 -> 159:0", + "161:0 -> 161:0", + "162:2-12 -> 162:2-12", + "163:0 -> 163:0", + "165:0 -> 165:0", + "166:2-18 -> 166:2-18", + "167:0 -> 167:0", + "169:0 -> 169:0", + "170:2-12 -> 170:2-12", + "171:2-16 -> 171:2-16", + "172:0 -> 172:0", + "174:0 -> 174:0", + "175:2-17 -> 175:2-17", + "176:0 -> 176:0", + "178:0 -> 178:0", + "179:2-17 -> 179:2-17", + "180:0 -> 180:0", + "182:0 -> 182:0", + "183:2-24 -> 183:2-24", + "184:2-16 -> 184:2-16", + "185:0 -> 185:0", + "187:0 -> 187:0", + "188:2-17 -> 188:2-17", + "189:2-14 -> 189:2-14", + "190:0 -> 190:0", + "192:0 -> 192:0", + "193:2-15 -> 193:2-15", + "194:0 -> 194:0", + "196:0 -> 196:0", "197:2-26 -> 197:2-26", - "198:2-21 -> 198:2-21", + "198:2-26 -> 198:2-26", "199:2-21 -> 199:2-21", - "200:2-16 -> 200:2-16", + "200:2-21 -> 200:2-21", "201:2-16 -> 201:2-16", "202:2-16 -> 202:2-16", - "203:2-17 -> 203:2-17", + "203:2-16 -> 203:2-16", "204:2-17 -> 204:2-17", - "205:2-14 -> 205:2-14", + "205:2-17 -> 205:2-17", "206:2-14 -> 206:2-14", - "207:2-19 -> 207:2-19", - "208:2-40 -> 208:2-40", - "209:2-31 -> 209:2-31", - "210:2-30 -> 210:2-30", - "211:2-29 -> 211:2-29", - "212:2-16 -> 212:2-16", - "213:2-21 -> 213:2-21", - "214:2-23 -> 214:2-23", - "215:2-24 -> 215:2-24", - "216:2-25 -> 216:2-25", - "217:2-19 -> 217:2-19", - "218:2-29 -> 218:2-29", - "219:2-30 -> 219:2-30", - "220:2-28 -> 220:2-28", - "221:2-36 -> 221:2-36", - "222:2-29 -> 222:2-29", - "223:2-24 -> 223:2-24", - "224:2-32 -> 224:2-32", - "225:2-13 -> 225:2-13", - "226:2-19 -> 226:2-19", - "227:2-17 -> 227:2-17", - "228:2-18 -> 228:2-18", - "229:2-19 -> 229:2-19", - "230:2-15 -> 230:2-15", - "231:2-17 -> 231:2-17", - "232:2-14 -> 232:2-14", - "233:2-20 -> 233:2-20", - "234:2-22 -> 234:2-22", - "235:2-28 -> 235:2-28", - "236:2-26 -> 236:2-26", - "237:2-27 -> 237:2-27", - "238:2-28 -> 238:2-28", - "239:2-24 -> 239:2-24", - "240:2-25 -> 240:2-25", - "241:2-26 -> 241:2-26", - "242:2-23 -> 242:2-23", - "243:0 -> 243:0", - "245:0 -> 245:0", - "246:2-26 -> 246:2-26", + "207:2-14 -> 207:2-14", + "208:2-19 -> 208:2-19", + "209:2-40 -> 209:2-40", + "210:2-31 -> 210:2-31", + "211:2-30 -> 211:2-30", + "212:2-29 -> 212:2-29", + "213:2-16 -> 213:2-16", + "214:2-21 -> 214:2-21", + "215:2-23 -> 215:2-23", + "216:2-24 -> 216:2-24", + "217:2-25 -> 217:2-25", + "218:2-19 -> 218:2-19", + "219:2-29 -> 219:2-29", + "220:2-30 -> 220:2-30", + "221:2-28 -> 221:2-28", + "222:2-36 -> 222:2-36", + "223:2-29 -> 223:2-29", + "224:2-24 -> 224:2-24", + "225:2-32 -> 225:2-32", + "226:2-13 -> 226:2-13", + "227:2-19 -> 227:2-19", + "228:2-17 -> 228:2-17", + "229:2-18 -> 229:2-18", + "230:2-19 -> 230:2-19", + "231:2-15 -> 231:2-15", + "232:2-17 -> 232:2-17", + "233:2-14 -> 233:2-14", + "234:2-20 -> 234:2-20", + "235:2-22 -> 235:2-22", + "236:2-28 -> 236:2-28", + "237:2-26 -> 237:2-26", + "238:2-27 -> 238:2-27", + "239:2-28 -> 239:2-28", + "240:2-24 -> 240:2-24", + "241:2-25 -> 241:2-25", + "242:2-26 -> 242:2-26", + "243:2-23 -> 243:2-23", + "244:0 -> 244:0", + "246:0 -> 246:0", "247:2-26 -> 247:2-26", - "248:2-21 -> 248:2-21", + "248:2-26 -> 248:2-26", "249:2-21 -> 249:2-21", - "250:2-16 -> 250:2-16", + "250:2-21 -> 250:2-21", "251:2-16 -> 251:2-16", "252:2-16 -> 252:2-16", - "253:2-17 -> 253:2-17", + "253:2-16 -> 253:2-16", "254:2-17 -> 254:2-17", - "255:2-14 -> 255:2-14", + "255:2-17 -> 255:2-17", "256:2-14 -> 256:2-14", - "257:2-19 -> 257:2-19", - "258:2-40 -> 258:2-40", - "259:2-31 -> 259:2-31", - "260:2-30 -> 260:2-30", - "261:2-29 -> 261:2-29", - "262:2-16 -> 262:2-16", - "263:2-21 -> 263:2-21", - "264:2-23 -> 264:2-23", - "265:2-24 -> 265:2-24", - "266:2-25 -> 266:2-25", - "267:2-19 -> 267:2-19", - "268:2-29 -> 268:2-29", - "269:2-30 -> 269:2-30", - "270:2-28 -> 270:2-28", - "271:2-36 -> 271:2-36", - "272:2-29 -> 272:2-29", - "273:2-24 -> 273:2-24", - "274:2-32 -> 274:2-32", - "275:2-13 -> 275:2-13", - "276:2-19 -> 276:2-19", - "277:2-17 -> 277:2-17", - "278:2-18 -> 278:2-18", - "279:2-19 -> 279:2-19", - "280:2-15 -> 280:2-15", - "281:2-17 -> 281:2-17", - "282:2-14 -> 282:2-14", - "283:2-20 -> 283:2-20", - "284:2-22 -> 284:2-22", - "285:2-28 -> 285:2-28", - "286:2-26 -> 286:2-26", - "287:2-27 -> 287:2-27", - "288:2-28 -> 288:2-28", - "289:2-24 -> 289:2-24", - "290:2-25 -> 290:2-25", - "291:2-26 -> 291:2-26", - "292:2-23 -> 292:2-23", - "293:0 -> 293:0", - "295:0 -> 295:0", - "296:2-26 -> 296:2-26", + "257:2-14 -> 257:2-14", + "258:2-19 -> 258:2-19", + "259:2-40 -> 259:2-40", + "260:2-31 -> 260:2-31", + "261:2-30 -> 261:2-30", + "262:2-29 -> 262:2-29", + "263:2-16 -> 263:2-16", + "264:2-21 -> 264:2-21", + "265:2-23 -> 265:2-23", + "266:2-24 -> 266:2-24", + "267:2-25 -> 267:2-25", + "268:2-19 -> 268:2-19", + "269:2-29 -> 269:2-29", + "270:2-30 -> 270:2-30", + "271:2-28 -> 271:2-28", + "272:2-36 -> 272:2-36", + "273:2-29 -> 273:2-29", + "274:2-24 -> 274:2-24", + "275:2-32 -> 275:2-32", + "276:2-13 -> 276:2-13", + "277:2-19 -> 277:2-19", + "278:2-17 -> 278:2-17", + "279:2-18 -> 279:2-18", + "280:2-19 -> 280:2-19", + "281:2-15 -> 281:2-15", + "282:2-17 -> 282:2-17", + "283:2-14 -> 283:2-14", + "284:2-20 -> 284:2-20", + "285:2-22 -> 285:2-22", + "286:2-28 -> 286:2-28", + "287:2-26 -> 287:2-26", + "288:2-27 -> 288:2-27", + "289:2-28 -> 289:2-28", + "290:2-24 -> 290:2-24", + "291:2-25 -> 291:2-25", + "292:2-26 -> 292:2-26", + "293:2-23 -> 293:2-23", + "294:0 -> 294:0", + "296:0 -> 296:0", "297:2-26 -> 297:2-26", - "298:2-21 -> 298:2-21", + "298:2-26 -> 298:2-26", "299:2-21 -> 299:2-21", - "300:2-16 -> 300:2-16", + "300:2-21 -> 300:2-21", "301:2-16 -> 301:2-16", "302:2-16 -> 302:2-16", - "303:2-17 -> 303:2-17", + "303:2-16 -> 303:2-16", "304:2-17 -> 304:2-17", - "305:2-14 -> 305:2-14", + "305:2-17 -> 305:2-17", "306:2-14 -> 306:2-14", - "307:2-19 -> 307:2-19", - "308:2-40 -> 308:2-40", - "309:2-31 -> 309:2-31", - "310:2-30 -> 310:2-30", - "311:2-29 -> 311:2-29", - "312:2-16 -> 312:2-16", - "313:2-21 -> 313:2-21", - "314:2-23 -> 314:2-23", - "315:2-24 -> 315:2-24", - "316:2-25 -> 316:2-25", - "317:2-19 -> 317:2-19", - "318:2-29 -> 318:2-29", - "319:2-30 -> 319:2-30", - "320:2-28 -> 320:2-28", - "321:2-36 -> 321:2-36", - "322:2-29 -> 322:2-29", - "323:2-24 -> 323:2-24", - "324:2-32 -> 324:2-32", - "325:2-13 -> 325:2-13", - "326:2-19 -> 326:2-19", - "327:2-17 -> 327:2-17", - "328:2-18 -> 328:2-18", - "329:2-19 -> 329:2-19", - "330:2-15 -> 330:2-15", - "331:2-17 -> 331:2-17", - "332:2-14 -> 332:2-14", - "333:2-20 -> 333:2-20", - "334:2-22 -> 334:2-22", - "335:2-28 -> 335:2-28", - "336:2-26 -> 336:2-26", - "337:2-27 -> 337:2-27", - "338:2-28 -> 338:2-28", - "339:2-24 -> 339:2-24", - "340:2-25 -> 340:2-25", - "341:2-26 -> 341:2-26", - "342:2-23 -> 342:2-23", - "343:0 -> 343:0", + "307:2-14 -> 307:2-14", + "308:2-19 -> 308:2-19", + "309:2-40 -> 309:2-40", + "310:2-31 -> 310:2-31", + "311:2-30 -> 311:2-30", + "312:2-29 -> 312:2-29", + "313:2-16 -> 313:2-16", + "314:2-21 -> 314:2-21", + "315:2-23 -> 315:2-23", + "316:2-24 -> 316:2-24", + "317:2-25 -> 317:2-25", + "318:2-19 -> 318:2-19", + "319:2-29 -> 319:2-29", + "320:2-30 -> 320:2-30", + "321:2-28 -> 321:2-28", + "322:2-36 -> 322:2-36", + "323:2-29 -> 323:2-29", + "324:2-24 -> 324:2-24", + "325:2-32 -> 325:2-32", + "326:2-13 -> 326:2-13", + "327:2-19 -> 327:2-19", + "328:2-17 -> 328:2-17", + "329:2-18 -> 329:2-18", + "330:2-19 -> 330:2-19", + "331:2-15 -> 331:2-15", + "332:2-17 -> 332:2-17", + "333:2-14 -> 333:2-14", + "334:2-20 -> 334:2-20", + "335:2-22 -> 335:2-22", + "336:2-28 -> 336:2-28", + "337:2-26 -> 337:2-26", + "338:2-27 -> 338:2-27", + "339:2-28 -> 339:2-28", + "340:2-24 -> 340:2-24", + "341:2-25 -> 341:2-25", + "342:2-26 -> 342:2-26", + "343:2-23 -> 343:2-23", + "344:0 -> 344:0", ] `) })