-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable tap highlights on iOS #12299
Conversation
9f66591
to
512ff76
Compare
* Disable tap highlights on iOS * Update changelog * Update snapshots * Update changelog
* Disable tap highlights on iOS * Update changelog * Update snapshots * Update changelog
* Disable tap highlights on iOS * Update changelog * Update snapshots * Update changelog
This also applies to Android, right? |
It does (at least in Chrome) |
Why is this added? That tap highlight is an accessibility/UX thing. This means by default all websites built with TailwindCSS are now less accessible! @adamwathan, what changed? #9050 (comment) |
I hate this, i wondered why it got removed in my website and then i found this pr ... |
I agree with the above comments. Tap highlights being removed by default is an accessibility issue. |
I agree that this makes tailwind less accessible by default. |
Here we're adding
-webkit-tap-highlight-color: transparent;
to disable tap highlights on iOS.This means that the brief gray overlay that appears when tapping links or buttons will not anymore.
Before
with.highlight.mov
After
without.highlight.mov
If you want to re-enable the tap highlight in your own project you can do so by adding a rule to revert it to the original value: