Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Preventing Edge from showing the visual search icon when users hover over an image

Tags:

html

css

Microsoft Edge have recently added a new hover icon (visual search) to all images over a certain size on a webpage (it seems to show for all images above ~180px).

The user can remove it in Edge settings, but I'm looking for a solution in HTML/CSS to prevent this icon from showing when hovering over an img tag.

What the icon looks like

This is the icon

Icon after hover

icon expanded on hover

An animated GIF showing the hover behavior

enter image description here

like image 659
JayTruman Avatar asked Sep 12 '25 03:09

JayTruman


1 Answers

Try to use pointer-events: none; for image.

Keep in mind this will prevent certain JavaScript events like click and touch from triggering on the image and likely impacts accessibility (prevents touching the image to read the alt text in iOS Safari with VoiceOver for example).

like image 85
Igor Ponomarenko Avatar answered Sep 13 '25 18:09

Igor Ponomarenko