Closed
Bug 1419078
Opened 7 years ago
Closed 7 years ago
Add a close button in the sidebar
Categories
(DevTools :: Console, enhancement, P2)
DevTools
Console
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.
Reporter | ||
Updated•7 years ago
|
Severity: normal → enhancement
Priority: -- → P2
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → mpark
Status: NEW → ASSIGNED
Reporter | ||
Comment 2•7 years ago
|
||
mozreview-review |
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 hidden (mozreview-request) |
Reporter | ||
Comment 4•7 years ago
|
||
mozreview-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+
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Pushed by nchevobbe@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ffb0df035e0d
Add a close button to the console sidebar. r=nchevobbe
Comment 8•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•