DEV Community

Discussion on: What CSS tip do you want to share with others?

Collapse
 
bayuangora profile image
Bayu Angora • Edited
html {
-webkit-tap-highlight-color: transparent;
}
Enter fullscreen mode Exit fullscreen mode

This is useful to remove default blue square when tapping object on mobile.

Collapse
 
adrianmarkperea profile image
Adrian Perea

This one is interesting. Would you know if this would affect accessibility?

Collapse
 
bayuangora profile image
Bayu Angora

You can check my score here ->
webpagetest.org/result/200615_SW_b...

Collapse
 
terabytetiger profile image
Tyler V. (he/him)

This was my first thought when I saw what this CSS did. After a bit of digging, I found this GitHub issue discussing it: github.com/necolas/normalize.css/i...

A similar note on MDN makes me think that removing the blue square is not best practice.