flobrosch / valadoc-org

32 stars 5 forks source link

Don't show the clear search icon when the entry is empty #20

Open danirabbit opened 8 years ago

danirabbit commented 8 years ago

When there is no text, it's a button that does nothing. We should get rid of it when the entry is empty

benwaffle commented 8 years ago

I think you can do this in CSS with <input pattern=".+" /> and input:valid { ... }

flobrosch commented 8 years ago

We should use the pattern to handle non-ID-characters instead.

SkyzohKey commented 8 years ago

Note that pattern isn't working on old browsers