DevTools: Panel button should show on hover a pointer cursor
Categories
(DevTools :: Framework, defect, P3)
Tracking
(firefox75 verified)
Tracking | Status | |
---|---|---|
firefox75 | --- | verified |
People
(Reporter: sys.sgx, Assigned: aarushivij, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(8 files, 1 obsolete file)
Comment 2•11 years ago
|
||
![]() |
||
Comment 4•11 years ago
|
||
Comment 5•9 years ago
|
||
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Updated•9 years ago
|
Comment 9•9 years ago
|
||
Updated•9 years ago
|
Comment 10•9 years ago
|
||
![]() |
||
Comment 11•9 years ago
|
||
Comment 12•9 years ago
|
||
Updated•9 years ago
|
![]() |
||
Comment 13•9 years ago
|
||
Comment 14•9 years ago
|
||
![]() |
||
Comment 15•9 years ago
|
||
Updated•7 years ago
|
Comment 16•7 years ago
|
||
This bug has not been updated in the last 6 months. Resetting the assignee field.
Please, feel free to pick it up again and add a comment outlining your plans for it if you do still intend to work on it.
This is just trying to clean our backlog of bugs and make bugs available for people.
Comment 17•7 years ago
|
||
(In reply to Patrick Brosset <:pbro> from comment #16)
Hello Patrick,
I may be interested in pick up this bug. Could you help me to see what is left to do to finish this bug? Thank you
Comment 19•6 years ago
|
||
Hello,
Is this bug still available? I would like to work on it.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 20•6 years ago
|
||
Victoria, this bug is about (In reply to u566121 from comment #13)
For Stand Alone buttons (like the one for Inspector>Animations>Pick an
element form the page, or in Performance>Start Recording Performance, or
even the Network>Reload buttons) the hover feedback is not really clear. So
I think that for them, we should have a more drastic change of color and
background. Also, they look different every time, so I guess we should
standardize that. For these kinds of buttons I think the "cursor: pointer"
would be useful.In the Debugger tab, both "Collapse Panel" buttons are different than
they are in other tabs. The "Pause" and "Step" buttons also are not like any
other button on the DevTools. Still on the Debugger tab, everything now has
"cursor: pointer", that should be removed once the right interaction for
hovering is in place.Now, these are the button questions that I found. The other ones are about
design inconsistencies overall in the DevTools and I don't know if I should
open a new bug for them here in Bugzilla or if we could just change this
bug's name to something like "DevTools: straightening out design
inconsistencies etc". I'll list them here anyways.
The Performance and Memory tabs are mostly the same when nothing is
happening, but the alignment of the center button is different. Also the
"Clear" button should be inactive on the Performance tab when there is
nothing there to be cleared, just like on the Memory tab. Finally, we could
put a "There are no snapshots yet." message on the Memory tab, just like
there is in the Performance.The debugger left-side panel should have the same styles as the
Performance and Memory ones, since they are similar and have mostly the same
parts.I guess that's it for now, let me know what you think :)
(I'm sorry for not adding any screenshots here, I tried to, but could not
figure out how. I'll look into it later, haha. Still learning how to use
Bugzilla...)
Thanks for the summary!
Most of the things in this summary has been fixed over time, except of the hover button s in the Performance panel I think. But, this panel is subject for significant refactoring so, I think we can solve that hovering elsewhere.
Honza
Comment 21•6 years ago
|
||
Victoria, this bug is about cursor for the back button in the Network panel (performance analysis view). See the attached screenshot. It's currently 'pointer' and the suggestion is to use 'hand'.
It looks like we are using pointer for buttons across the DevTools UI so, I tend to say we should keep it but, wanted to check with you first.
Honza
Comment 22•6 years ago
|
||
Yes, the more pressing issue is that the button itself doesn't look like any other buttons.
A quick fix for this could be changing the shape of the button to a photon style button. This indeed should keep the pointer cursor.
Mockup: https://www.figma.com/file/Ni3AVbCkUFl1WEyElPg2Xh/network-performance-analysis?node-id=0%3A1
Assignee | ||
Comment 23•6 years ago
|
||
Hello, Can I work on this bug.
So, do we need to change the pointer to hand or as mentioned in comment 22 change the back button UI itself
Aarushi
Comment 24•6 years ago
|
||
(In reply to Victoria Wang [:victoria] from comment #22)
Yes, the more pressing issue is that the button itself doesn't look like any other buttons.
A quick fix for this could be changing the shape of the button to a photon style button. This indeed should keep the pointer cursor.
Mockup: https://www.figma.com/file/Ni3AVbCkUFl1WEyElPg2Xh/network-performance-analysis?node-id=0%3A1
Thanks Victoria for the mockup!
(In reply to aarushivij from comment #23)
Hello, Can I work on this bug.
Assigned to you, thanks for the help.
So, do we need to change the pointer to hand or as mentioned in comment 22 change the back button UI itself
The cursor should stay the same. We only want to change the back button itself, see Victoria's mockup
Honza
Assignee | ||
Comment 25•6 years ago
|
||
Ok, Thanks for assigning :)
Shall get back to you soon
Aarushi
Assignee | ||
Comment 26•6 years ago
|
||
Hello,
I have made the changes in the element.
Is it looking correct?
Also what color should the button be?
Thanks
Aarushi
Assignee | ||
Comment 27•6 years ago
|
||
Hey @Honza , please review the last comment so that I can make the changes in the file and make a patch.
Thanks :)
Comment 28•6 years ago
|
||
Hi Aarushi, you can match the button color of the Edit & Resend button in the Network sidebar. There are different colors for dark and light theme. Thanks!
Assignee | ||
Comment 29•6 years ago
|
||
Hey :victoria
I was working on the issue.
I know what rules to apply, but couldn't find the appropriate file.
I tried with using back-button class and adding the style into it in https://searchfox.org/mozilla-central/source/devtools/client/netmonitor/src/assets/styles/netmonitor.css
But the rules did not apply on the back button.
Unlike the Edit and Resend button whose style is specifically mentioned in https://searchfox.org/mozilla-central/source/devtools/client/netmonitor/src/assets/styles/NetworkDetailsPanel.css
Also about the background color of the button.
Should I use .light-theme .back-button{}
style class for it.
Since the similar method is used in edit and resend button styling
So can you please guide me through.
I have attached the screenshot showing the styles to be added in .back-button.devtools-button{}
Thank you.
Aarushi
Comment 30•6 years ago
|
||
(In reply to aarushivij from comment #29)
I know what rules to apply, but couldn't find the appropriate file.
The new CSS rules should go to StatisticsPanel.css
file
https://searchfox.org/mozilla-central/source/devtools/client/netmonitor/src/assets/styles/StatisticsPanel.css
Also about the background color of the button.
Should I use.light-theme .back-button{}
style class for it.
Since the similar method is used in edit and resend button styling
Yes
.edit-and-resend-button
button styles are here
https://searchfox.org/mozilla-central/search?q=.edit-and-resend-button+&path=
And there are separate CSS rules for light and dark themes. We need something similar for the back button.
Something like as follows:
.theme-dark .statistics-panel .devtools-toolbarbutton.back-button {
// CSS props for dark theme
}
.theme-light .statistics-panel .devtools-toolbarbutton.back-button {
// CSS props for light theme
}
I have attached the screenshot showing the styles to be added in
.back-button.devtools-button{}
Please attach your current patch so, I can try it on my machine.
You might want to read the docs here:
https://firefox-source-docs.mozilla.org/devtools/contributing/making-prs.html
Honza
Comment 31•6 years ago
|
||
(In reply to Jan Honza Odvarko [:Honza] (always need-info? me) from comment #30)
.theme-dark .statistics-panel .devtools-toolbarbutton.back-button { // CSS props for dark theme } .theme-light .statistics-panel .devtools-toolbarbutton.back-button { // CSS props for light theme }
.devtools-button
is what you want, since .devtools-toolbarbutton
is for XUL panels.
Also, you probably wouldn't need separate rules for theme-dark/theme-light, given that .devtools-button
class + the data-standalone attribute would give you all the correct colors.
So if you need to add CSS rules (though you really don't need to, except maybe for margin), this is what you probably want:
.statistics-panel .back-button {
}
Comment 32•6 years ago
|
||
Thanks for simplification Tim!
Honza
Assignee | ||
Comment 33•6 years ago
|
||
Thanks @Honza and @Tim
Shall make the changes and share the patch soon.
Assignee | ||
Comment 34•6 years ago
|
||
Assignee | ||
Comment 35•6 years ago
|
||
Hello
I have made the changes.
The specification for background color for dark-theme wasn't needed. But since in light theme originally the back button had that greyish color on hover only , so I specified it's background color.
Thanks for all the help :)
Shall make the changes if any after review
Aarushi
Comment 36•6 years ago
|
||
Great thanks, commented in Phab.
Honza
Assignee | ||
Comment 37•6 years ago
|
||
Assignee | ||
Comment 38•6 years ago
|
||
Hey @Honza
Sorry, I submitted a new patch, though I used the amend command to make the changes in my commit. As mentioned in https://docs.firefox-dev.tools/contributing/making-prs.html
What was I doing wrong?
Thanks for the help
Aarushi
Comment 39•6 years ago
•
|
||
(In reply to aarushivij from comment #38)
Hey @Honza
Sorry, I submitted a new patch, though I used the amend command to make the changes in my commit. As mentioned in https://docs.firefox-dev.tools/contributing/making-prs.html
What was I doing wrong?
Do not specify new -m
commit message
(the doc needs to be fixed, see also bug 1613578)
Honza
Assignee | ||
Comment 40•6 years ago
|
||
Oh okay.
But now if I will amend, it will amend the new patch.
Is the latest patch acceptable.
Made the spacing changes in it.
Updated•6 years ago
|
Comment 41•6 years ago
|
||
![]() |
||
Comment 42•6 years ago
|
||
bugherder |
Comment 43•6 years ago
|
||
Hi Jan, After going through all the comments I'm a bit confused about what finally changed with this issue, is it just the Back button from the Network > Performance Analysis ?
if so, I noticed in the old builds that the button itself used to highlight a bit (change to a darker grey) when hovered over and now it does not highlight at all, I do see the Arrow cursor and the tooltip for the button. (This applies to the Dark Theme as well)
Can you please clear things up a bit so we can update the flags accordingly ?
Comment 44•6 years ago
|
||
(In reply to Rares Doghi from comment #43)
Hi Jan, After going through all the comments I'm a bit confused about what finally changed with this issue, is it just the Back button from the Network > Performance Analysis ?
Yes, correct.
The button should follow the same UX as the one we have in the Headers side panel Edit And Resend
screenshot attached.
(no hover effect)
Honza
Comment 45•6 years ago
|
||
Great, Based on Comment 44 we can confirm this issue Verified as Fixed in our latest Nightly build on Windows 10, Mac 10.14 and Ubuntu 18.04.
Description
•