X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/3d119884626e1026f9108ac0d0e8d28a17941d67..12f86df239e8a6c1d554d86b5c56e2b8713f6cd8:/doc/todo/Add_label_to_search_form_input_field.mdwn diff --git a/doc/todo/Add_label_to_search_form_input_field.mdwn b/doc/todo/Add_label_to_search_form_input_field.mdwn index dbe024a86..514108fba 100644 --- a/doc/todo/Add_label_to_search_form_input_field.mdwn +++ b/doc/todo/Add_label_to_search_form_input_field.mdwn @@ -22,4 +22,35 @@ The patch below adds a label for the field to improve usability: >> for >> an explanation why. --[[HenrikBrixAndersen]] -[[wishlist]] +>>> If you really want to do this, this is one way: + + --- searchform.tmpl.orig Sat Aug 25 11:54:28 2007 + +++ searchform.tmpl Sat Aug 25 11:56:19 2007 + @@ -1,6 +1,6 @@ +
+
+ - + + + + +
+ +> That's both nasty javascript and fails if javascript is disabled. :-) +> What I'd really like is a proper search label that appears above the +> input box. There is free whitespace there, except for pages with very +> long titles. Would someone like to figure out the CSS to make that +> happen? +> +> The tricky thing is that the actual html for the form needs to +> still come after the page title, not before it. Because the first thing +> a non-css browser should show is the page title. But the only way I know +> to get it to appear higher up is to put it first, or to use Evil absolute +> positioning. (CSS sucks.) --[[Joey]] + +> Update: html5 allows just adding `placeholder="Search"` to the input +> element. already works in eg, chromium. However, ikiwiki does not use +> html5 yet. --[[Joey]] + +>> [[Done]], placeholder added, in html5 mode only. + +[[!tag wishlist bugs/html5_support]]