In the inspector view, the title on the little "flex" and "grid" indications should indicate that they're clickable
Categories
(DevTools :: Inspector: Layout, defect, P3)
Tracking
(firefox70 fixed)
Tracking | Status | |
---|---|---|
firefox70 | --- | fixed |
People
(Reporter: julienw, Assigned: shellyc23, Mentored)
Details
(Keywords: good-first-bug)
Attachments
(1 file)
In a page that has elements with Flex layout, the inspector view shows that properly with a "flex" indication.
Moreover nowadays it's clickable to trigger the flexible layout inspector, and this is very cool.
But the title doesn't say that and so it's not very discoverable.
Note that there's a proper title on the button in the rules view, I think the same text should also be added to the title of the "flex" button.
Note: this also happens for the elements using grid layout.
Comment 1•5 years ago
|
||
Thanks for filing. Very valid concern. I'll actually move it as a bug so it ends up on our triage dashboard, and I'd argue that this is actually a bug.
Comment 2•5 years ago
|
||
In order to fix this bug you will need to add update the localizations in https://searchfox.org/mozilla-central/source/devtools/client/locales/en-US/inspector.properties#40. You will need to change the strings and bump the id so that the localization team will pick up the changes (eg, "markupView.display.flex.tooltiptext" to "markupView.display.flex.tooltiptext2") and update their respective getStr id in https://searchfox.org/mozilla-central/source/devtools/client/inspector/markup/views/element-editor.js#36-39.
I think adding something like: "Click to toggle the X overlay for this element." where X is grid or flex.
Assignee | ||
Comment 3•5 years ago
|
||
I would like to take a stab at this
Comment 4•5 years ago
|
||
(In reply to Krishnal Ciccolella from comment #3)
I would like to take a stab at this
Hey Krishnal, I assigned the bug to you. Feel free to request more information and review from me.
Assignee | ||
Comment 5•5 years ago
|
||
Thanks for assigning me to this bug.
I have a question in reference to the inline-flex
and inline-grid
buttons. Am I right in the assumption that you would like the changes to be made to them also?
Comment 6•5 years ago
|
||
(In reply to Krishnal Ciccolella from comment #5)
Thanks for assigning me to this bug.
I have a question in reference to the
inline-flex
andinline-grid
buttons. Am I right in the assumption that you would like the changes to be made to them also?
Yes
Assignee | ||
Comment 7•5 years ago
|
||
I made changes to the LOCALIZATION NOTE
in the inspector.properties
file and updated DISPLAY_TYPES
in the element-editor.js
file for flex
, grid
, inline-flex
and inline-grid
.
Pushed by gluong@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/06b3b957184a Hovering over 'flex' and 'grid' buttons, in the inspector view, indicates that they are clickable r=gl
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
Description
•