Open Bug 1158204 Opened 10 years ago Updated 2 years ago

Improve highlighted search strings in debugger and styles

Categories

(DevTools :: General, defect, P2)

defect

Tracking

(Not tracked)

People

(Reporter: danemacmillan, Unassigned)

References

Details

(Whiteboard: [polish-backlog][difficulty=easy])

Attachments

(2 files, 1 obsolete file)

The color contrast chosen for highlighted strings when searching in the debugger tab make it nearly impossible to read. http://i.imgur.com/ES31d5m.png The color contrast in the styles tab are better, but they should still be improved. http://i.imgur.com/8VY2scS.png
Whiteboard: [devedition-40]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [devedition-40] → [devedition-40][difficulty=easy]
Priority: -- → P2
Whiteboard: [devedition-40][difficulty=easy] → [polish-backlog][difficulty=easy]
Assignee: nobody → jsantell
Status: NEW → ASSIGNED
Assignee: jsantell → nobody
Status: ASSIGNED → NEW
The search highlighting should generally be unified, i.e. the text and background colors should always be the same. There was a similar issue for Firebug including mockups, which could serve as an example.[1] Sebastian [1] https://github.com/firebug/firebug/issues/3113
OS: Mac OS X → All
I like to work on this task, please give me some pointers so that I can start working on this task.
It appears that the issue with the debugger is that the editor window isn't focused so we are bumping into Bug 706209 and being unable to style the selection on inactive windows. Not sure what the best approach is for this - we've discussed integrating the debugger search into the editor, but I'm unsure how that would work with cross-file searching. The Style Editor is easier to deal with because we are using the CodeMirror search plugin which gives us a .cm-searching class that we can modify easily. Helen, do you have a suggestion for what a search match in the Style Editor should look like in the light / dark theme (currently http://i.imgur.com/8VY2scS.png)? If we still want a yellow-like background color then I guess we could add a theme-yellow option to https://developer.mozilla.org/en-US/docs/Tools/DevToolsColors and then use the appropriate one per-theme (along with a consistent dark text color).
Flags: needinfo?(hholmes)
See Also: → 706209
Attached image Screen Shot 2016-01-11 at 9.09.46 AM.png (obsolete) —
So I think we would gain a lot just by making the background colors a little more neutral. (See screenshot—I went with some blue-ish grays playing off of the line-highlight color.) Also made sure that the new colors pass accessibility.
Flags: needinfo?(hholmes)
(In reply to Helen V. Holmes (:helenvholmes) (:✨) from comment #4) > Created attachment 8706367 [details] > Screen Shot 2016-01-11 at 9.09.46 AM.png > > So I think we would gain a lot just by making the background colors a little > more neutral. (See screenshot—I went with some blue-ish grays playing off of > the line-highlight color.) > > Also made sure that the new colors pass accessibility. Thanks! Should it use this same color for the light theme or a different one?
Flags: needinfo?(hholmes)
Also, we could change the text color for matched text if that makes it easier for accessibility
(In reply to Brian Grinstead [:bgrins] from comment #5) > Thanks! Should it use this same color for the light theme or a different > one? I don't think we should use the same colors—I'll attach another mockup with updates for the light theme.
Attached image dark-theme.png
Attachment #8706367 - Attachment is obsolete: true
Attached image light-theme.png
I ended up tweaking the light theme just a little to pass AA, I think the colors were fine as-is for the most part (unlike the dark theme). I also updated the dark theme a bit, on one of the combos I was getting a large-text AA pass that failed once I set it to Menlo 10pt, which it looks like is what we're using in the editor (so that's fixed now too).
Flags: needinfo?(hholmes)
(In reply to Helen V. Holmes (:helenvholmes) (:✨) from comment #10) > Created attachment 8706918 [details] > light-theme.png > > I ended up tweaking the light theme just a little to pass AA, I think the > colors were fine as-is for the most part (unlike the dark theme). I also > updated the dark theme a bit, on one of the combos I was getting a > large-text AA pass that failed once I set it to Menlo 10pt, which it looks > like is what we're using in the editor (so that's fixed now too). What do you think about changing the text color for selected text along with the background color? So it could be a very dark (near black) text color with the yellow background. This would guarantee we always pass the accessibility guidelines even if the syntax highlighting colors change. And we could possibly use a similar scheme for dark theme too (tweaking the yellow to match the theme if needed).
(In reply to Brian Grinstead [:bgrins] from comment #11) > What do you think about changing the text color for selected text along with > the background color? So it could be a very dark (near black) text color > with the yellow background. This would guarantee we always pass the > accessibility guidelines even if the syntax highlighting colors change. And > we could possibly use a similar scheme for dark theme too (tweaking the > yellow to match the theme if needed). I'm down for changing the text color to something very dark for the light theme (makes sense to me). I wouldn't use the yellow background for the dark theme though (I would recommend doing the same thing just the inverse for the light theme)—I suspect the yellow will look as equally garish (if not more so) than what we're coming from.
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: