Last modified: 2014-04-29 22:10:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65606, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63606 - Create account's Simple captcha is badly laid out in latest .mw-ui-vform
Create account's Simple captcha is badly laid out in latest .mw-ui-vform
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
User login and signup (Other open bugs)
unspecified
All All
: Highest normal (vote)
: 1.23.0 release
Assigned To: Nobody - You can work on this!
: code-update-regression
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-04-07 10:45 UTC by spage
Modified: 2014-04-29 22:10 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---
legoktm.wikipedia: Backport_to_Stable+


Attachments
poor layout of SimpleCaptcha in Create account form (16.47 KB, image/png)
2014-04-07 10:45 UTC, spage
Details

Description spage 2014-04-07 10:45:15 UTC
Created attachment 15035 [details]
poor layout of SimpleCaptcha in Create account form

.mw-ui-vform wants to style its contents as chunky full-width blocks. It used to only apply this to elements that are immediate children of its divs. As I understand it, this was so arbitrary HTML dropped in the form wouldn't get unexpectedly styled, but sometimes you want it and sometimes not.

Gerrit change #121842 fix for Bug 63233 removed the div parent from the selector so all labels and input field within .mw-ui-form get the styling. Now QuestyCaptcha looks great, but the layout of SimpleCaptcha is degraded.  Its HTML includes

<p><label for="wpCaptchaWord">9−4</label> = <input name="wpCaptchaWord" id="wpCaptchaWord" size="5" autocomplete="off" tabindex="1" /></p>

which normally displays as plain
  9−4 = [     ]
but now the mw-ui-vform CSS gives the label display:block and different alignment, and gives the input field display:block and width 100%. The result (see attachment) is

9−4
=
[width 100% text area        ]


I'm not sure what the best fix is. SimpleCaptcha could move the = into the label to reduce it to two lines, and override the full-width input field with  style="width:auto;".

The CAPTCHA's same chunk of HTML appears elsewhere.  The create account form reformats and restyles the FancyCaptcha image CAPTCHA, but it would be a lot of work to restyle other captchas.
Comment 1 Bartosz Dziewoński 2014-04-07 17:20:26 UTC
The "=" definitely looks like it should be moved inside of the <label/>,
and I would actually stop at this point – seems like it should look good enough
and consistent with everything else (the form and other captchas).
Comment 2 Gerrit Notification Bot 2014-04-07 17:26:03 UTC
Change 124357 had a related patch set uploaded by Bartosz Dziewoński:
SimpleCaptcha: Move the equals sign inside the <label/>

https://gerrit.wikimedia.org/r/124357
Comment 3 Bartosz Dziewoński 2014-04-16 13:25:37 UTC
Could somebody review? We should fix this in time for 1.23 release.
Comment 4 Gerrit Notification Bot 2014-04-20 20:04:48 UTC
Change 124357 merged by jenkins-bot:
SimpleCaptcha: Move the equals sign inside the <label/>

https://gerrit.wikimedia.org/r/124357
Comment 5 Bartosz Dziewoński 2014-04-20 20:34:38 UTC
I asked the release managers to ensure this is included in the 1.23 tarball.
The extension bundling process is murky for me and I don't want to mess something up in the backporting.
Comment 6 Nemo 2014-04-21 13:09:23 UTC
(In reply to Bartosz Dziewoński from comment #5)
> I asked the release managers to ensure this is included in the 1.23 tarball.
> The extension bundling process is murky for me and I don't want to mess
> something up in the backporting.

Due to https://gerrit.wikimedia.org/r/#/c/125706/ , unless we want to make 600 backports, I think we'll need to delete all REL1_23 branches and rebranch 1.23 for extensions in the coming days.
Comment 7 Gerrit Notification Bot 2014-04-29 22:10:18 UTC
Change 130505 had a related patch set uploaded by Legoktm:
SimpleCaptcha: Move the equals sign inside the <label/>

https://gerrit.wikimedia.org/r/130505
Comment 8 Gerrit Notification Bot 2014-04-29 22:10:31 UTC
Change 130505 merged by jenkins-bot:
SimpleCaptcha: Move the equals sign inside the <label/>

https://gerrit.wikimedia.org/r/130505
Comment 9 Kunal Mehta (Legoktm) 2014-04-29 22:10:55 UTC
Backported to ConfirmEdit's REL1_23 branch.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links