Closed
Bug 371487
Opened 18 years ago
Closed 17 years ago
Selected item in <select> should be gray when the <select> doesn't have focus
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Unassigned)
References
()
Details
Attachments
(1 file)
1.06 KB,
patch
|
Details | Diff | Splinter Review |
Bug 371485 changed the selected item color to a darker blue, making Firefox match Safari for focused <selects>. I think this color stands out too much, and that we should follow Safari by making non-focused <selects> use gray for selected items.
For example, on https://bugzilla.mozilla.org/query.cgi?format=advanced, "DUPLICATE" is dark blue when you first load the page in Firefox trunk, but light gray when you first load the page in Safari.
Reporter | ||
Comment 1•18 years ago
|
||
Oops, that's bug 371053, not bug 371485.
Comment 2•18 years ago
|
||
We have -moz-mac-secondaryhighlight for selected but non-focused treerows et al, that could probably be used.
Comment 3•18 years ago
|
||
This is how it could be done. Note that this isn't really ready for review -- you'll need an ifdef so win/nix doesn't get the style rules (ugly). I can also imagine that Josh have some plans for this.
Comment 4•18 years ago
|
||
I think windows uses -moz-cellhighlight for selected and non-focused treecells. That could probably be used, but then win/nix people have to be convinced that they want it for html selects (from what I heard IE7 doesn't have it).
Comment 5•18 years ago
|
||
Comment on attachment 256325 [details] [diff] [review]
demo patch
Hmm... this will of course not work if you have an optgroup...
![]() |
||
Comment 6•18 years ago
|
||
You could use the ' ' combinator instead of '>' to deal with optgroups, no?
Comment 8•17 years ago
|
||
This is fixed by bug 412281
Josh/Colin: will bug 54488 make this work correctly for cases where they are foucsed and the app or the window goes to the background, or do we need a new (Cocoa Widget?) bug on that?
You need to log in
before you can comment on or make changes to this bug.
Description
•