Closed Bug 1390727 Opened 7 years ago Closed 7 years ago

Add a consistent style for all the no result messages in the Inspector

Categories

(DevTools :: Inspector, enhancement, P3)

enhancement

Tracking

(firefox57 fixed)

RESOLVED FIXED
Firefox 57
Tracking Status
firefox57 --- fixed

People

(Reporter: gl, Assigned: gl)

References

Details

Attachments

(1 file)

We currently display "no result" messages like "No element selected.", "No CSS properties found.", "CSS Grid is not in use on this page" in the inspector side panels. We should style them consistently similar to debugger.html
Blocks: 1390721
Comment on attachment 8897692 [details]
Bug 1390727 - Add a consistent style for all the no result messages in the Inspector sidepanel.

https://reviewboard.mozilla.org/r/168974/#review174554

Nice! Please respond one way or another to the comment about renaming the class before landing

::: devtools/client/themes/common.css:692
(Diff revision 1)
>    background-position: center;
>  }
> +
> +/* No result message styles */
> +
> +.devtools-sidepanel-no-result {

I'm not sure we should include 'sidepanel' in this class name. That implies where the message will show up, but I could imagine showing a similar message in other tools in the main area (i.e. netmonitor or console).

Rename to `.devtools-no-result`?
Attachment #8897692 - Flags: review?(bgrinstead) → review+
(In reply to Brian Grinstead [:bgrins] from comment #2)
> Comment on attachment 8897692 [details]
> Bug 1390727 - Add a consistent style for all the no result messages in the
> Inspector sidepanel.
> 
> https://reviewboard.mozilla.org/r/168974/#review174554
> 
> Nice! Please respond one way or another to the comment about renaming the
> class before landing
> 
> ::: devtools/client/themes/common.css:692
> (Diff revision 1)
> >    background-position: center;
> >  }
> > +
> > +/* No result message styles */
> > +
> > +.devtools-sidepanel-no-result {
> 
> I'm not sure we should include 'sidepanel' in this class name. That implies
> where the message will show up, but I could imagine showing a similar
> message in other tools in the main area (i.e. netmonitor or console).
> 
> Rename to `.devtools-no-result`?

I did anticipate that we would have to style something similar for the main area for the netmonitor and other tools. I found that there were no consistencies between how the main area was styled and typically the font and padding is much bigger. This is why I included 'sidepanel' so that we know this style should be used for all sidepanels. I expect the no result styling for the main areas to be different. For now, I am gonna leave the 'sidepanel' in the class name.
Pushed by gabriel.luong@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/85d411f74b49
Add a consistent style for all the no result messages in the inspector sidepanel. r=bgrins
https://hg.mozilla.org/mozilla-central/rev/85d411f74b49
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 57
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: