Open Bug 937358 Opened 11 years ago Updated 2 years ago

[rule view] UI for adding new CSS declarations to a declaration block is not discoverable

Categories

(DevTools :: Inspector: Rules, enhancement, P3)

enhancement

Tracking

(Not tracked)

People

(Reporter: jimb, Unassigned)

Details

To add a new declaration to a CSS declaration block, one can click on the closing curly bracket of the block, but that's not very discoverable.

One fix might be to add an "add declaration" item to the context menu, present when right-clicking anywhere in the block.
The cursor goes I when you hover anywhere over near the ending of a block. That is a very big hit area and somewhat clear that this area is for text editing.

May be we can add a tooltip over that area saying "Click to add a rule"
Just clicking around in the empty space in a block triggers the declaration add. I personally find that sufficient.
I'm not against adding more entries in the context menu as Jim suggested. We have almost no menu items right now in the rule-view context menu, so it doesn't hurt.
Plus, people who are used to clicking at the right places will still be able to do it.
It makes the feature more discoverable indeed. And Firebug 2 used to have it too.
Mentor: pbrosset
Component: Developer Tools: Style Editor → Developer Tools: Inspector
Safari's inline editing UI is pretty interesting, and could be a solution for this.
Component: Developer Tools: Inspector → Developer Tools: CSS Rules Inspector
Priority: -- → P3
Product: Firefox → DevTools

Hey, I could work on it. Can you please help in which file do I need to make changes for it?

Mentor: patrickbrosset+bugzilla
Type: defect → enhancement
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.