Opened 13 years ago
Closed 13 years ago
#22054 closed defect (bug) (fixed)
Twenty Twelve: Search button wraps to the next line on a localized install
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.5 | Priority: | normal |
Severity: | normal | Version: | 3.5 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | Cc: |
Description (last modified by )
- In Twenty Twelve's
functions.php
, set$subset = 'cyrillic'
on line 123: http://core.trac.wordpress.org/browser/trunk/wp-content/themes/twentytwelve/functions.php?rev=22066#L123
Or download the Russian translation files from GlotPress and setWPLANG
toru_RU
inwp-config.php
. - The search input will grow bigger, and the button will wrap to the next line (see the screenshot, middle).
This only happens with Open Sans enabled. Without Open Sans, the form looks similar to the one in the English package (see the screenshot, bottom).
Reproduced in Firefox 15, Chrome 22, IE 9. Doesn't happen in Opera 12 or IE 8.
Attachments (4)
Change History (13)
#3
@
13 years ago
This is weird.
When I tried to reproduce the bug, I noticed that the search input field has a line-height of 16px with Open Sans enabled and 12px when it is disabled, making the input field looking smaller than the submit button. I couldn't reproduce your bug though :)
#4
follow-up:
↓ 5
@
13 years ago
Apparently Open Sans somehow alters the input width and/or height if it's not set explicitly.
I've consistently reproduced the bug in Firefox and Chrome on Windows XP, Vista, and Windows 7. Could not reproduce on Mac OS X though.
#5
in reply to:
↑ 4
@
13 years ago
Replying to SergeyBiryukov:
Apparently Open Sans somehow alters the input width and/or height if it's not set explicitly.
22054.1.diff should standardize that. I'm not sure it helps with your original bug, though...
#6
@
13 years ago
Thanks for the report, patches and all the other info. Will test this out a combination of both your patches. The key is to fix it without changing the existing visual display.
#7
@
13 years ago
I can't repeat the originally reported bug after setting Russian as the locale in WP and adding the Twenty Twelve language files to my theme install.
I can't think of why a translated install would make the input element be wider. See ru-chrome.png screenshot.
As for the line-height issue, I don't think we need to adjust for that.
Setting a width for the search form input (22054.patch) fixes this in my testing.