Merge branch 'top-search-colors-and-element-position-is-not-like-in-design' into 'master'
Adds base64 background search icon.
All inputs of type `search` will have the gray background
and search icon centered.
Because the search magnifier is a bg image,
I had to hide it with `[value=""]`.
I added a little javascript to make sure each input always has it's
own `value`.
A text and icon placeholder in the center of the input that disappears when typed is only possible with javascript. If you just want the icon or just the text it can be done with css alone.
If you want the icon/text justified left, then the search magnifier does not have to disappear.
Fixes #11870
cc @skyruler @creamzy
![searchinput](/uploads/136ab91d4ff9ce717979d0ce1a23ab03/searchinput.gif)
See merge request !2546
Showing
Please
register
or
sign in
to comment