Closed (duplicate)
Project:
Bootstrap
Version:
7.x-2.0-beta2
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Feb 2013 at 06:27 UTC
Updated:
14 May 2013 at 16:36 UTC
hi,
On normal PC screen, Search box in top Navigation region works well. But switching to smaller screens, it cannot be focused any more (see attachment). Instead, I've just got a link ("New") next to it when I was attempting to click this box.
How to fix it? Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| Screenshot-2.png | 141.49 KB | henryhu |
Comments
Comment #1
TheJoker commentedHenry Hu, need remove attribute size="15" on input search form.
Comment #2
henryhu commentedThank you TheJoker,
How to remove it? I tried hook_form_alter(), but could not find the attribute definition.
And I found that a solution was remove "float: left" style. But I do not know how to remove it just for small screens.
Comment #3
TheJoker commentedI do not know why the developers have included a class in the form, because by default, elements are aligned to the left. Sorry, writing patch and experimenting I have no time. But you can change it in the theme Bootstrap.
Go to the bootstrap\includes\form.inc
Remove the line of code 49 ($ form ['# attributes'] [' class'] [] = 'pull-left' ;) and if you need to remove the size, then add back ($ form ['search_block_form'] ['# attributes '] [' size '] [] ='';).
I do not remember, maybe you can copy this function on you themplate.php and make the changes there. This eliminates the need to do the same with the update if it is not fixed, of course.
Comment #4
markhalliwellThis was fixed in #1993968: Search block broken