Web Development Tip: Disable Pointer Events on Link Images
Good tip from Jeff Johnson:
My business website has a number of βDownload on the App Storeβ links for my App Store apps. Hereβs an example of what that looks like:
[β¦]
The problem is that Live Text, βSelect text in images to copy or take action,β is enabled by default on iOS devices (Settings β General β Language & Region), which can interfere with the contextual menu in Safari. Pressing down on the above link may select the text inside the image instead of selecting the link URL.
I love the Live Text feature, but it often conflicts with graphics like these. There is a good, simple, two-line CSS trick for web developers that should cover most situations. Also, if you rock a user stylesheet β and I think you should β it seems to work fine as a universal solution. Any issues I have found have been minor and not worth noting. I say give it a shot.
Update: Adding Johnsonβs CSS to a user stylesheet mucks up the layout of Techmeme a little bit. You can exclude it by adding div:not(.ii) > before a:has(> img) { display: inline-block; }.