Closed Bug 420414 Opened 16 years ago Closed 16 years ago

on Vista, a menubutton which has focus and selection should not have a blue background

Categories

(Firefox :: Theme, defect, P2)

x86
Windows Vista
defect

Tracking

()

RESOLVED FIXED
Firefox 3

People

(Reporter: beltzner, Assigned: ehsan.akhgari)

References

Details

Attachments

(5 files, 1 obsolete file)

Attached image this is wrong!
Screenshots coming. Looks like we just need to override/remove an explicit background colour statement; transparent background is fine.
Er, that was the screenshot.
Component: Theme → XUL Widgets
Product: Firefox → Toolkit
QA Contact: theme → xul.widgets
Yes, very bad!

menulist:focus > .menulist-label-box {
  background-color: transparent ! important;
  color: auto ! important; /* err.. auto? inherit? what's the right thing here? */
}
Flags: blocking1.9?
(In reply to comment #2)
> menulist:focus > .menulist-label-box {
>   background-color: transparent ! important;
>   color: auto ! important; /* err.. auto? inherit? what's the right thing here?
> */
> }

inherit, I think ... at least, for me, auto made the text white when in the selected/collapsed state.

I'll attach a screenshot. The only odd thing left is the focus ring colour, which seems to be tan, not black like everywhere else. I'm tempted to say we should find out where that's being painted and set the colour to be transparent ;)
Attached image this is better!
Note the focus ring colour is a little strange ...
Yeah, though I think IE uses the same focus ring color, I think it's kind of a yellow?  If we want something distinct we could set the focus to be the same color as the background was (the blue) maybe..
>If we want something distinct we could set the focus to be the same
>color as the background was (the blue) maybe..

Ideally we wouldn't show the focus ring at all, so we really don't want to make it more distinct.
A focus indicator is needed for accessibility and usability in general.
looks pretty busted, +
Flags: blocking1.9? → blocking1.9+
Vista natively uses a black focus ring on dropdowns as the screenshot illustrates. I think black would work fine, it's noticeable enough when tabbing through, and is the usual way of doing things throughout the rest of the OS.
>A focus indicator is needed for accessibility and usability in general.

Yeah, what I meant to say was that ideally we wouldn't be showing the focus ring on mouse interactions (bug 418521).
While I agree with bug 418521, let's not make a hack fix for that just for a single XUL element. I never should have joked. Vlad: same colour as everywhere else, please, which seems to be black.
Blocks: vista-theme
Priority: -- → P2
Target Milestone: --- → mozilla1.9
(In reply to comment #11)
> While I agree with bug 418521, let's not make a hack fix for that just for a
> single XUL element. I never should have joked. Vlad: same colour as everywhere
> else, please, which seems to be black.

You're asking the wrong person here, this is a theme css thing :)
Not sure if this is the same thing but on vista when dragging a favicon over a folder in the bookmark menu there is dark blue selection highlighting as well as the lighter blue vista selection. Also the selection seems to remain on the top 'bookmark this page' menu entry as well as being duplicated over the drop folder target. 

Screenshot following.
Does the resolution to Bug 418537 effect this in any way?
Component: XUL Widgets → Theme
Flags: blocking1.9+
Product: Toolkit → Firefox
QA Contact: xul.widgets → theme
Target Milestone: mozilla1.9 → ---
Flags: blocking-firefox3+
Assignee: nobody → mcdavis941.bugs
I can't take Vista-specific bugs at the moment.  Sorry.  Setting back to unassigned.
Assignee: mcdavis941.bugs → nobody
Attached patch Patch (v1) (obsolete) — Splinter Review
Fix the problem on the aero theme.
Assignee: nobody → ehsan.akhgari
Status: NEW → ASSIGNED
Attachment #313828 - Flags: review?(mano)
Whiteboard: [has patch] [needs review mano]
Target Milestone: --- → Firefox 3
The 1px dotted border should probably change color too. We could probably get away with setting it to the same color as the text in the box, that way it'll almost always be black, but also show up in the same contrast as the text itself on any other theme.
Attached patch Patch (v1.1)Splinter Review
(In reply to comment #19)
> The 1px dotted border should probably change color too. We could probably get
> away with setting it to the same color as the text in the box, that way it'll
> almost always be black, but also show up in the same contrast as the text
> itself on any other theme.

This new patch draws the focus ring using ThreeDDarkShadow, which is the same color as the focus ring for a XUL button.
Attachment #313828 - Attachment is obsolete: true
Attachment #313888 - Flags: review?(mano)
Attachment #313828 - Flags: review?(mano)
Comment on attachment 313888 [details] [diff] [review]
Patch (v1.1)

r+a=mconnor, thanks!
Attachment #313888 - Flags: review?(mano)
Attachment #313888 - Flags: review+
Attachment #313888 - Flags: approval1.9+
Keywords: checkin-needed
Whiteboard: [has patch] [needs review mano]
mozilla/toolkit/themes/winstripe/global/jar.mn 	1.50
mozilla/toolkit/themes/winstripe/global/menulist-aero.css 	1.1 
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: