Change cursor for Box Model values to `text`
Categories
(DevTools :: Inspector, enhancement, P3)
Tracking
(firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: Harald, Assigned: danielleleb12, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(3 files)
Right now it is hard to discover that the fields can be edited. Cursor can help, but maybe the hover should use a more visible border effect.
Updated•6 years ago
|
Reporter | ||
Comment 1•6 years ago
|
||
Correcting myself, pointer should be the right value, to mark elements with weak affordance interactive.
Updated•6 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 2•5 years ago
|
||
I'd like to work on this if it's still available!
Comment 3•5 years ago
•
|
||
(In reply to danielleleb12 from comment #2)
I'd like to work on this if it's still available!
Yep, I just marked it as available and a good-first-bug. I think the relevant changes should be in this CSS class https://searchfox.org/mozilla-central/source/devtools/client/themes/boxmodel.css#335.
Comment 4•5 years ago
|
||
As an additional bonus item, we should also remove the text cursor around the box model legends. This is the margin, border, and padding text that you see in the box model diagram. https://searchfox.org/mozilla-central/source/devtools/client/themes/boxmodel.css#291
Assignee | ||
Comment 5•5 years ago
|
||
Ok great, I've styled the cursor for the editable fields as 'pointer', and for the legend as 'default'. Should I also adjust the border effect, as mentioned in the description?
Comment 6•5 years ago
|
||
(In reply to danielleleb12 from comment #5)
Ok great, I've styled the cursor for the editable fields as 'pointer', and for the legend as 'default'. Should I also adjust the border effect, as mentioned in the description?
Yea, that's a great idea too. There's a couple of example of this, which makes this a bit difficult to decide which one to go with. I believe if we were to follow the latest photon design we would reuse the border effect seen in the web console. https://searchfox.org/mozilla-central/source/devtools/client/themes/webconsole.css#598.
However, if we were to be consistent with the current border effects in the other inputs in the inspector. You would go with the following styles. https://searchfox.org/mozilla-central/source/devtools/client/themes/common.css#549
Give the 2 of them a try, maybe attach some screenshots and we can ping Victoria who is our UI/UX designer about it.
Thank you for working on this!
Assignee | ||
Comment 7•5 years ago
|
||
Will do! What's the best way to go about attaching images here?
No problem - and thank you for answering my questions so quickly!
Assignee | ||
Comment 8•5 years ago
|
||
Also, the effects in the links you shared are for focus, and the one mentioned in the description (and in boxmodel.css currently), are for hover. Should those effects you shared be added on focus or hover?
Comment 9•5 years ago
|
||
I think we can add them for both :focus and :hover. You can attach screenshots if you look for the "Attach File" link above the first comment.
Comment 10•5 years ago
•
|
||
I think we can add it for both since the :focus will be useful for keyboard focus and :hover for the mouseover.
Assignee | ||
Comment 11•5 years ago
|
||
Hover effect from common.css (inspector input style).
Assignee | ||
Comment 12•5 years ago
|
||
Hover style from webconsole.css (Photon style).
Updated•5 years ago
|
Comment 14•5 years ago
|
||
Hi Danielleleb12! I'm sorry for the late response to this. The cursor changes sound great. Regarding the border styles in the screenshots, I think the "Hover style from webconsole.css" version looks the best, and I'd suggest we also make the background color of the field white to make it look more like an input field.
Comment 15•5 years ago
|
||
Ah, I have a few more details after chatting with gl about this:
Since the box model values already have a brightened background effect from Micah's work, we don't need a blue outline on hover anymore. The blue outline + white background can be only on active (+ keyboard navigation)
And the cursor work is still good to land :)
Assignee | ||
Comment 16•5 years ago
|
||
Comment 17•5 years ago
|
||
Hi Gabriel, I see a patch was posted a month ago, and you were added as the reviewer.
Can you please take a look at it?
Comment 18•5 years ago
|
||
Pushed by gabriel.luong@gmail.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/bfb8f26e725b Changes box model values' cursor and active/focus stylings. r=gl
Comment 19•5 years ago
|
||
bugherder |
Description
•