dailyhack icon indicating copy to clipboard operation
dailyhack copied to clipboard

Design an input box with search emoji

Open mddanishyusuf opened this issue 5 years ago • 5 comments

Recently I add search input box into dailyhack.xyz and without search icon the input doesn't feel good according to UX. So, to add a icon inside input box need more element and CSS. Nowadays I'm using lots of emoji and I think why not use a little hack to design this search input box without any extra element and CSS. Here is the hack.

<input type="text" placeholder="🔍 Let's find some tricks from past"/>

input-with-emoji

So, I'm adding a search emoji into placeholder of the input box.

What you think? is this cool hack?

mddanishyusuf avatar Apr 16 '19 07:04 mddanishyusuf

The hack is super cool! I also noticed the power of emojis in my last project instead of using any icons.

KNTH01 avatar Apr 16 '19 08:04 KNTH01

I actually have a hack to use a search icon from font awesome etc. as part of a the placeholder attribute for an input without creating any additional elements. I should add it!

Booligoosh avatar Apr 16 '19 08:04 Booligoosh

@Booligoosh Go ahead. love to hear that.

mddanishyusuf avatar Apr 16 '19 10:04 mddanishyusuf

@mddanishyusuf this is actually pretty cool

akash-joshi avatar May 15 '19 13:05 akash-joshi

Thanks, @akash-joshi

If you have any tricks then it's easy to contribute. Just make new issues and submit.

mddanishyusuf avatar May 18 '19 07:05 mddanishyusuf