Skip to content

Commit 9260bb8

Browse files
Merge pull request #785 from plotly/tweaks
Tweaks
2 parents e2e9e5e + df9d504 commit 9260bb8

File tree

6 files changed

+16
-15
lines changed

6 files changed

+16
-15
lines changed

src/components/containers/AnnotationAccordion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PlotlyFold from './PlotlyFold';
2-
import TraceRequiredPanel from './TraceRequiredPanel';
2+
import {LayoutPanel} from './derived';
33
import {PanelMessage} from './PanelEmpty';
44
import PropTypes from 'prop-types';
55
import React, {Component} from 'react';
@@ -43,7 +43,7 @@ class AnnotationAccordion extends Component {
4343
};
4444

4545
return (
46-
<TraceRequiredPanel addAction={canAdd ? addAction : null}>
46+
<LayoutPanel addAction={canAdd ? addAction : null}>
4747
{content ? (
4848
content
4949
) : (
@@ -56,7 +56,7 @@ class AnnotationAccordion extends Component {
5656
<p>{_('Click on the + button above to add an annotation.')}</p>
5757
</PanelMessage>
5858
)}
59-
</TraceRequiredPanel>
59+
</LayoutPanel>
6060
);
6161
}
6262
}

src/components/containers/ImageAccordion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PlotlyFold from './PlotlyFold';
2-
import TraceRequiredPanel from './TraceRequiredPanel';
2+
import {LayoutPanel} from './derived';
33
import PropTypes from 'prop-types';
44
import React, {Component} from 'react';
55
import {connectImageToLayout} from 'lib';
@@ -48,7 +48,7 @@ class ImageAccordion extends Component {
4848
};
4949

5050
return (
51-
<TraceRequiredPanel addAction={canAdd ? addAction : null}>
51+
<LayoutPanel addAction={canAdd ? addAction : null}>
5252
{content ? (
5353
content
5454
) : (
@@ -61,7 +61,7 @@ class ImageAccordion extends Component {
6161
<p>{_('Click on the + button above to add an image.')}</p>
6262
</PanelMessage>
6363
)}
64-
</TraceRequiredPanel>
64+
</LayoutPanel>
6565
);
6666
}
6767
}

src/components/containers/ShapeAccordion.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import PlotlyFold from './PlotlyFold';
2-
import TraceRequiredPanel from './TraceRequiredPanel';
2+
import {LayoutPanel} from './derived';
33
import PropTypes from 'prop-types';
44
import React, {Component} from 'react';
55
import {connectShapeToLayout} from 'lib';
@@ -48,7 +48,7 @@ class ShapeAccordion extends Component {
4848
};
4949

5050
return (
51-
<TraceRequiredPanel addAction={canAdd ? addAction : null}>
51+
<LayoutPanel addAction={canAdd ? addAction : null}>
5252
{content ? (
5353
content
5454
) : (
@@ -61,7 +61,7 @@ class ShapeAccordion extends Component {
6161
<p>{_('Click on the + button above to add a shape.')}</p>
6262
</PanelMessage>
6363
)}
64-
</TraceRequiredPanel>
64+
</LayoutPanel>
6565
);
6666
}
6767
}

src/components/fields/DataSelector.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ export class UnconnectedDataSelector extends Component {
9595
value={this.fullValue}
9696
onChange={this.updatePlot}
9797
multi={this.is2D}
98+
searchable={true}
9899
optionRenderer={this.context.dataSourceOptionRenderer}
99100
valueRenderer={this.context.dataSourceValueRenderer}
100101
clearable={true}

src/default_panels/StyleAxesPanel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
Radio,
1313
TextEditor,
1414
PlotlySection,
15-
TraceRequiredPanel,
15+
LayoutPanel,
1616
AxesFold,
1717
AxisSide,
1818
RangesliderVisible,
@@ -26,7 +26,7 @@ class StyleAxesPanel extends Component {
2626
render() {
2727
const {localize: _} = this.context;
2828
return (
29-
<TraceRequiredPanel>
29+
<LayoutPanel>
3030
<AxesFold
3131
name={_('Titles')}
3232
axisFilter={axis => !(axis._name.includes('angular') || axis._subplot.includes('geo'))}
@@ -402,7 +402,7 @@ class StyleAxesPanel extends Component {
402402
<Numeric label={_('Thickness')} attr="spikethickness" units="px" />
403403
<ColorPicker label={_('Color')} attr="spikecolor" />
404404
</AxesFold>
405-
</TraceRequiredPanel>
405+
</LayoutPanel>
406406
);
407407
}
408408
}

src/default_panels/StyleLayoutPanel.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
Numeric,
1010
TextEditor,
1111
PlotlySection,
12-
TraceRequiredPanel,
12+
LayoutPanel,
1313
VisibilitySelect,
1414
HovermodeDropdown,
1515
Flaglist,
@@ -18,7 +18,7 @@ import {
1818
import {HoverColor} from '../components/fields/derived';
1919

2020
const StyleLayoutPanel = (props, {localize: _}) => (
21-
<TraceRequiredPanel>
21+
<LayoutPanel>
2222
<PlotlyFold name={_('Defaults')}>
2323
<ColorPicker label={_('Plot Background')} attr="plot_bgcolor" />
2424
<ColorPicker label={_('Margin Color')} attr="paper_bgcolor" />
@@ -137,7 +137,7 @@ const StyleLayoutPanel = (props, {localize: _}) => (
137137
</HovermodeDropdown>
138138
</PlotlySection>
139139
</PlotlyFold>
140-
</TraceRequiredPanel>
140+
</LayoutPanel>
141141
);
142142

143143
StyleLayoutPanel.contextTypes = {

0 commit comments

Comments
 (0)