Skip to content

Commit 8622b2e

Browse files
committed
add links to Subplots panel
1 parent 5ea7b93 commit 8622b2e

File tree

5 files changed

+20
-10
lines changed

5 files changed

+20
-10
lines changed

src/components/containers/TraceRequiredPanel.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,15 @@ class TraceRequiredPanel extends Component {
4444
<a onClick={() => this.context.setPanel('Graph', 'Create')}>
4545
{_('Create')}
4646
</a>
47+
<<<<<<< HEAD
4748
<<<<<<< HEAD
4849
{_(' panel to define traces.')}
4950
=======
5051
{_(' tab to define traces.')}
5152
>>>>>>> e9befe5... add GraphCreatePanel link to empty panel
53+
=======
54+
{_(' panel to define traces.')}
55+
>>>>>>> b220435... add links to Subplots panel
5256
</p>
5357
</PanelEmpty>
5458
);

src/components/fields/AxesCreator.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,11 @@ class UnconnectedAxesCreator extends Component {
165165
<PlotlySection name={_('Axes to Use')}>
166166
{controls}
167167
<Info>
168-
{_(
169-
'You can style and position your axes in the Graph > Subplots Panel'
170-
)}
168+
{_('You can style and position your axes in the ')}
169+
<a onClick={() => this.context.setPanel('Graph', 'Subplots')}>
170+
{_('Subplots')}
171+
</a>
172+
{_(' panel.')}
171173
</Info>
172174
</PlotlySection>
173175
);
@@ -184,6 +186,7 @@ UnconnectedAxesCreator.contextTypes = {
184186
fullData: PropTypes.array,
185187
fullLayout: PropTypes.object,
186188
localize: PropTypes.func,
189+
setPanel: PropTypes.func,
187190
};
188191

189192
export default connectToContainer(UnconnectedAxesCreator, {

src/components/fields/SubplotCreator.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ class UnconnectedSubplotCreator extends Component {
145145
options={getOptions(subplotType)}
146146
/>
147147
<Info>
148-
{_(
149-
'You can style and position your subplots in the Graph > Subplots Panel'
150-
)}
148+
{_('You can style and position your subplots in the ')}
149+
<a onClick={() => this.context.setPanel('Graph', 'Subplots')}>
150+
{_('Subplots')}
151+
</a>
152+
{_(' panel.')}
151153
</Info>
152154
</PlotlySection>
153155
);
@@ -164,6 +166,7 @@ UnconnectedSubplotCreator.contextTypes = {
164166
fullData: PropTypes.array,
165167
fullLayout: PropTypes.object,
166168
localize: PropTypes.func,
169+
setPanel: PropTypes.func,
167170
};
168171

169172
export default connectToContainer(UnconnectedSubplotCreator, {

src/styles/components/containers/_panel.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@
8585
font-size: var(--font-size-base);
8686
color: var(--color-text-base);
8787
line-height: var(--font-leading-body);
88-
a {
89-
color: $color-dodger-shade;
90-
cursor: pointer;
91-
}
9288
}
9389
}
9490
}

src/styles/main.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
display: flex;
3232
flex-grow: 1;
3333
}
34+
a {
35+
color: $color-dodger-shade;
36+
cursor: pointer;
37+
}
3438
}
3539

3640
.plotly_editor {

0 commit comments

Comments
 (0)