Closed Bug 1419078 Opened 7 years ago Closed 7 years ago

Add a close button in the sidebar

Categories

(DevTools :: Console, enhancement, P2)

enhancement

Tracking

(firefox59 fixed)

RESOLVED FIXED
Firefox 59
Tracking Status
firefox59 --- fixed

People

(Reporter: nchevobbe, Assigned: mpark)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The button should call the toggleSideBar action.
Blocks: 1380501
Severity: normal → enhancement
Priority: -- → P2
Assignee: nobody → mpark
Status: NEW → ASSIGNED
Comment on attachment 8933002 [details] Bug 1419078 - Add a close button to the console sidebar. https://reviewboard.mozilla.org/r/204000/#review209758 This looks good overall. I have a few comment about the CSS though. Also, we should try to align the close button of the toolbox with the one in the sidebar (http://prntscr.com/hh9nky) ::: devtools/client/themes/webconsole.css:1223 (Diff revision 1) > +.sidebar-contents { > + grid-row: 2 / 3; > +} > + > +.sidebar-close .sidebar-close-button { > + float: right; we can avoid floating things. Let's put a display flex on the toolbar, so we can then use `justify-content: end` (see https://codepen.io/nchevobbe/pen/QOJYye) ::: devtools/client/webconsole/new-console-output/components/SideBar.js:35 (Diff revision 1) > render() { > let { > sidebarVisible, > } = this.props; > > + let endPanel = dom.div({ we should use dom.aside ::: devtools/client/webconsole/new-console-output/components/SideBar.js:38 (Diff revision 1) > } = this.props; > > + let endPanel = dom.div({ > + className: "sidebar-wrapper" > + }, > + dom.div({ we could use dom.header here ::: devtools/client/webconsole/new-console-output/components/SideBar.js:39 (Diff revision 1) > > + let endPanel = dom.div({ > + className: "sidebar-wrapper" > + }, > + dom.div({ > + className: "devtools-toolbar sidebar-close" it may be used for other needs in the future (a filter bar for example), so this should be renamed to something more neutral (webconsole-sidebar-toolbar ?)
Attachment #8933002 - Flags: review?(nchevobbe) → review-
Comment on attachment 8933002 [details] Bug 1419078 - Add a close button to the console sidebar. https://reviewboard.mozilla.org/r/204000/#review209860 Looks good, thanks Mike ! Do you think we could add a mocha test to better start etsting the sidebar ? For now it would be just making sure that we do show a close button, and that clicking on it do call the expected function. You can have a look at the filter bar tests to take some inspiration
Attachment #8933002 - Flags: review?(nchevobbe) → review+
Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ffb0df035e0d Add a close button to the console sidebar. r=nchevobbe
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: