Selected item in Functions dropdown switcher in DevTools Debugger insufficiently hightlighted
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox98 verified)
Tracking | Status | |
---|---|---|
firefox98 | --- | verified |
People
(Reporter: czerny.jakub, Assigned: hikota)
References
Details
(Keywords: good-first-bug)
Attachments
(4 files)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0
Steps to reproduce:
Version: 98.0a1 (2022-01-23) (64-bit), dark theme
- Make sure DevTools uses dark theme
- Open a page, e.g. mozilla.org
- Open DevTools
- Select Debugger tab
- Open a javascript file from Sources side bar
- Press Ctrl+P to who "Go to file..." popup
- Type "@" to switch to searching for functions
Actual results:
List of functions in open file is shown, keys Up and Down allows to select a function. Selected function is poorly highlighted (text color is just a bit brighter).
Expected results:
Selected item should have blue background as Files dropdown has and as Function dropdown has in light theme.
Reporter | ||
Comment 1•3 years ago
|
||
Reporter | ||
Comment 2•3 years ago
|
||
Comment 3•3 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.
Comment 4•3 years ago
|
||
Interesting, for some reason, the Debugger overrides the style for the selected item in dark mode:
https://searchfox.org/mozilla-central/rev/66e59131c1c76fe486424dc37f0a8a399ca874d4/devtools/client/debugger/src/components/shared/ResultList.css#50
If we remove this override and let it use the default value, everything looks ok.
This should be a good first bug: simply remove the rule linked above.
Assignee | ||
Comment 5•3 years ago
|
||
I want to take up this Issue! Please assign me to it.
Comment 6•3 years ago
|
||
(In reply to Hikota from comment #5)
I want to take up this Issue! Please assign me to it.
Thanks! Assigning to you.
You can check the contributor documentation at https://firefox-source-docs.mozilla.org/contributing/index.html to help you setup your environment.
If you have any question either ask here (make sure to use the "request information from" checkbox below) or in our chat room https://chat.mozilla.org/#/room/#devtools:mozilla.org
Assignee | ||
Comment 7•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 8•3 years ago
|
||
I've uploaded a patch. Who should I assigned as a reviewer?
Comment 9•3 years ago
|
||
Hi :hikota! Your patch looks fine, you just have to request review on it, it's currently a draft. If you go to https://phabricator.services.mozilla.com/D137926 and check the select box above the comment textarea, there should be an option such as "Request review". Simply select that and submit. Thanks!
Comment 10•3 years ago
|
||
bugherder |
Updated•3 years ago
|
Comment 11•3 years ago
|
||
Reproduced the issue on an affected nightly build 98.0a1 (20220123093907), on Win 10 x64.
Verified as fixed on Beta 98.0b8 (20220222185824) on Win 10 x64, macOS 10.15 and Ubuntu 20.04. The background color of the selected item is grey, not blue as it is mentioned in Comment 0. Is this expected? Can I mark this bug as verified?
Assignee | ||
Comment 12•3 years ago
|
||
I may have misunderstood.
@jdescottes If it needs to be blue, I think it need to remove https://searchfox.org/mozilla-central/rev/131f3af9a49d2203adb7b7ef30dcc37c9f1aa10b/devtools/client/debugger/src/components/shared/ResultList.css#49-55 too.
Is this correct?
Comment 13•3 years ago
|
||
I was fine with just having it visible, but removing the other 2 selectors might be good. Let's file another bug.
@Giorgia : let's mark this as verified, the selected item is now visible.
Updated•3 years ago
|
Description
•