Skip to content

Commit a061a26

Browse files
show rangeslider when available
1 parent c8bfcd6 commit a061a26

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/default_panels/StyleAxesPanel.js

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ import {
99
Dropdown,
1010
FontSelector,
1111
Numeric,
12+
NumericFraction,
1213
NumericFractionDomain,
1314
Radio,
1415
TextEditor,
1516
MenuPanel,
1617
Section,
1718
TraceRequiredPanel,
1819
AxesFold,
19-
Fold,
2020
TraceTypeSection,
2121
} from '../components';
2222

@@ -308,20 +308,15 @@ class StyleAxesPanel extends Component {
308308
</Section>
309309
</AxesFold>
310310

311-
<Fold name={_('Range Slider')}>
311+
<AxesFold name={_('Range Slider')}>
312312
<Radio
313313
attr="rangeslider.visible"
314314
options={[
315315
{label: _('Show'), value: true},
316316
{label: _('Hide'), value: false},
317317
]}
318318
/>
319-
<Numeric
320-
label={_('Height')}
321-
attr="rangeslider.thickness"
322-
units="%"
323-
step={0.1}
324-
/>
319+
<NumericFraction label={_('Height')} attr="rangeslider.thickness" />
325320
<ColorPicker
326321
label={_('Background Color')}
327322
attr="rangeslider.bgcolor"
@@ -335,7 +330,7 @@ class StyleAxesPanel extends Component {
335330
label={_('Border Color')}
336331
attr="rangeslider.bordercolor"
337332
/>
338-
</Fold>
333+
</AxesFold>
339334

340335
<AxesFold name={_('Zoom Interactivity')}>
341336
<Radio

0 commit comments

Comments
 (0)