A shadow around a rectangular image box is different from a shadow following an icon's visible shape. If a transparent-looking asset produces a solid rectangular silhouette, inspect its pixels as well as its CSS.
Compare two shadow rules
The MDN drop-shadow reference explains how the filter uses an image's alpha mask. Compare it with a box shadow on the element. A white rectangle stored in the file can affect what the filtered silhouette looks like.
Check which white belongs to the icon
The explanation of white to transparent is useful when the file still contains a backdrop. Preserve white parts of the artwork, such as an eye or a small label. A color replacement that removes both may produce a convincing outline with missing content.
Use a tiny isolated case
Place the asset on a contrasting field without the surrounding component styles. Check the saved file, then add the shadow. This makes it easier to tell a source issue from a CSS effect.
Inspect at the actual icon size. A broad shadow can hide edge defects while making the interface harder to read. Keep the unmodified asset and record whether your fix changed alpha pixels or the styling. That distinction matters when another component reuses the same file without a shadow.
For a fair comparison, keep the same image dimensions and shadow settings across the two test cases. Swapping several assets at once can hide which file actually contains the opaque rectangle. Note the result without assuming every icon in the set behaves alike.

