Last modified: 2012-02-22 12:40:26 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 T31516, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29516 - Searchbox displays text in gray instead of black
Searchbox displays text in gray instead of black
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-21 17:01 UTC by Helder
Modified: 2012-02-22 12:40 UTC (History)
2 users (show)

See Also:
Web browser: Firefox
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of enws on secure server (placeholder black on FF 5).png (3.48 KB, image/png)
2011-07-09 01:18 UTC, Helder
Details
Search box on Iceweasel 3.5.16 (69.25 KB, image/png)
2011-08-17 15:18 UTC, Helder
Details

Description Helder 2011-06-21 17:01:54 UTC
I've noticed sometimes when I type something in the search box on Portuguese Wikisource[1] it displays the text in gray instead of black (as happens in other projects. But I didn't find any CSS rule on [[wikisource:pt:MediaWiki:Common.css]] which could be causing this change.

The only thing I found was on the following rule from /skins/vector/screen.css[2][3]:
----
div#simpleSearch input.placeholder {
	color: #999999;
}
----

If I go to firebug and disable this specific rule, the black color is restored.



[1] E.g. on [[wikisource:pt:Special:Preferences]]:
https://secure.wikimedia.org/wikisource/pt/w/index.php?title=Special:Preferences&debug=1&uselang=en
[2]https://secure.wikimedia.org/wikisource/pt/w/load.php?debug=true&lang=pt-br&modules=skins!vector&only=styles&skin=vector
[3]http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/skins/vector/screen.css?view=markup#l393
Comment 1 Dan Collins 2011-07-09 00:40:19 UTC
Tested on 08-July-2011 against live Wikisource::PT at both main page and special:preferences, placeholder text in the search box is grey, typed text is black. Works for me!
Comment 2 Helder 2011-07-09 01:18:58 UTC
Created attachment 8762 [details]
Screenshot of enws on secure server (placeholder black on FF 5).png

I just tested it on firefox 5 and got a black **placeholder**.
Comment 3 Helder 2011-07-11 13:59:56 UTC
(In reply to comment #1)
> Tested on 08-July-2011 against live Wikisource::PT at both main page and
> special:preferences, placeholder text in the search box is grey, typed text is
> black. Works for me!

Reopening since I'm still able to reproduce this on Windows XP using either of these browsers:
* IE 8.0.6001.18702
* Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
Comment 4 Helder 2011-07-11 14:01:10 UTC
PS: This may be related to the Bug 29801.
Comment 5 Helder 2011-08-17 15:18:28 UTC
Created attachment 8932 [details]
Search box on Iceweasel 3.5.16

(In reply to comment #3)
> (In reply to comment #1)
> > Tested on 08-July-2011 against live Wikisource::PT at both main page and
> > special:preferences, placeholder text in the search box is grey, typed text is
> > black. Works for me!
> 
> Reopening since I'm still able to reproduce this on Windows XP using either of
> these browsers:
> * IE 8.0.6001.18702
> * Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.3) Gecko/20100401
> Firefox/3.6.3

The problem also happens when I use Mozilla/5.0 (X11; U; Linux x86_64; pt-BR; rv:1.9.1.16) Gecko/20110701 Iceweasel/3.5.16 (like Firefox/3.5.16)
Comment 6 Helder 2011-08-17 15:46:12 UTC
I noticed that although the first line below[1] is executed, the second one is not being executed when I start typing on the search box:
   ----
42 | .bind( 'focus drop keydown paste', function( e ) {
   |      if ($input.hasClass('placeholder')) { 
   ----

[1] From jquery.placeholder.js:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/jquery/jquery.placeholder.js?revision=94389&view=markup#l38
Comment 7 Helder 2011-08-17 20:16:27 UTC
(In reply to comment #4)
> PS: This may be related to the Bug 29801.

I can confirm that after removing[1] this script from Portuguese Wikisource,
both this bug and bug 29801 disappeared.

[1]https://secure.wikimedia.org/wikisource/pt/w/index.php?diff=231041&oldid=229953
Comment 8 Mark A. Hershberger 2011-08-18 21:39:03 UTC
closing re comment #7

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


Navigation
Links