Last modified: 2012-09-27 16:07:49 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 T41793, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 39793 - placeholder text color in search bar in Firefox 15 is black instead of gray
placeholder text color in search bar in Firefox 15 is black instead of gray
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Interface (Other open bugs)
1.20.x
All All
: Normal minor (vote)
: 1.20.0 release
Assigned To: Bartosz Dziewoński
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-30 09:55 UTC by Fomafix
Modified: 2012-09-27 16:07 UTC (History)
8 users (show)

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


Attachments

Description Fomafix 2012-08-30 09:55:36 UTC
Since Firefox 15 the placeholder text in the search bar of skin vector is black instead of gray.

Solution: Add

div#simpleSearch input:-moz-placeholder {
        color: #999999;
}

to skins/vector/screen.css

https://developer.mozilla.org/en-US/docs/CSS/:-moz-placeholder
Comment 1 Krinkle 2012-08-31 00:25:16 UTC
I think in this case it would be best to keep the native coloring for interactive elements (at least until we design or own form elements compeltely, e.g. with a Twitter Bootstrap-like approach).

That way it is consistent across the web for Firefox users (button style, input color, focus border, text selection etc.)
Comment 2 Fomafix 2012-08-31 09:07:22 UTC
Native coloring is good.

But since Firefox 15 the existing
    div#simpleSearch input { color: black; }
overwrites the placeholder color, too.

How enable native color for the placeholder for Firefox 15 again?

Possible solutions:

1. remove
   div#simpleSearch input { color: black; }

I think this is possible because there is still
   div#simpleSearch { color: black; }
But maybe this is necessary for browsers without placeholder support.

2. add
   div#simpleSearch input:-moz-placeholder { color: GrayText; }

GrayText is deprecated: https://developer.mozilla.org/en-US/docs/CSS/color_value#System_Colors
Comment 3 Michael M. 2012-08-31 09:30:42 UTC
(In reply to comment #2)
> GrayText is deprecated:
> https://developer.mozilla.org/en-US/docs/CSS/color_value#System_Colors

System colors have been deprecated in favor of the new CSS3 UI ‘appearance’ property [1] and this property then was dropped [2].

[1] http://www.w3.org/TR/2011/REC-css3-color-20110607/#css2-system
[2] http://www.w3.org/TR/css3-ui/#changes-list
Comment 4 Fomafix 2012-09-04 07:43:23 UTC
I can not find any problems without

  div#simpleSearch input { color: black; }

even for browsers without placeholder support (IE8).

By the way, in skins/vector/screen.css #firstHeading has
  padding-top: 0
two times.
Comment 5 Dereckson 2012-09-26 17:40:55 UTC
[ Priority adjustment: trivial -> minor as it requires a little CSS and best practice analysis, adding Matma Rex as cc, it could be interested by this bug. ]
Comment 6 Bartosz Dziewoński 2012-09-27 15:27:55 UTC
Per [1], it is also possible to style the placeholder in IE.

I submitted a patch for Firefox & IE with an explanation to gerrit: https://gerrit.wikimedia.org/r/#/c/25506/

[1] http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css/2610741#2610741

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


Navigation
Links