Made the GridOutline component work with only 1 grid at a time.
It already did, but in a not so obvious way.
Removed the setState that happened during the render call to avoid
React warnings.
Cleaned up various data attribute to use the dataset property instead.
Removed the mouseover/out that controled the background color of the
highlighted cells. This now happens in CSS :hover, using currentColor.
Avoided React warnings related to missing "key" props.
Made changes to grid-inspector to avoid loops of re-renders when the
highlighter would highlight a cell on hover.
The component would wait for highlighter's events to dispatch store
actions. Instead, we dispatch them first, then when the events come, we
check if things have really changed! This way, the events will still have
effect if they come from the rule-view for instance, but not if they
come from the grid outline itself.
MozReview-Commit-ID: 6LK8B1P8iMU
- Moves the computed view toolbar back to the top
- Removes the outline to the property name and values and the arrow beside the
property values in the computed view
- Use the compact form of the box model
- Hide the box model when filtering the computed view
The XUL tabpanel can no longer receive userfocus to avoid scrollbars
stealing the focus. Editors are using the blur event to destroy
themselves, which was no longer working if a user click ended up on
the tabpanel element.
Add a wrapper inside the layout view panel taking
100% width and height to make sure clicks performed outside of the layout
container will trigger a blur event on a focused editor.
MozReview-Commit-ID: JmZluQ6LzFl