discuss icon indicating copy to clipboard operation
discuss copied to clipboard

webkit-tap-highlight-color defaults

Open justice47 opened this issue 5 years ago • 3 comments

Why -webkit-tap-highlight-color is not set to transparent by default? I've lost half an hour while investigating why my pressed button is look so ugly in mobile browser: image

justice47 avatar Dec 04 '19 22:12 justice47

I guess it's because it's a good idea to let users know when they're pressing things, same reason why we don't disable default focus styles. Maybe the default styling could be improved.

hacknug avatar Dec 05 '19 11:12 hacknug

The look&feel of the material buttons pressing is much better IMO - https://material.io/components/buttons/ Can we implement ripple and shadow transitions to show that the button has been clicked?

justice47 avatar Dec 12 '19 12:12 justice47

You can implement that in your own app for sure 👍 For Tailwind core that's too complex/opinionated, it's mean to be just low level primitives for building custom user interfaces, not an opinionated UI framework like Material.

adamwathan avatar Dec 12 '19 13:12 adamwathan