Hacker News new | ask | show | jobs
by spoonfeeder006 470 days ago
> Custom icons for an input field? Welp, it’s not that easy for privacy reasons to add a pseudo-class here in certain cases.

What exactly are those privacy reasons? And by custom icon for input field is meant replacing the cursor with e.g. an svg?

1 comments

The only thing I can imagine is if they are third-party icons? I don't understand it either.
The issue is that css doesnt allow adding pseudo elements (:before/after) to input fields, making adding icons to an input a little trickier than with other elements.