ui-kit
ui-kit copied to clipboard
TimeSeries component infinite stretching when setting a margin
Describe the bug
When setting a margin inside the style of a TimeSeries component, it start stretching indefinitely and a constant pace.
To reproduce
Create time-series component like this:
function Component() {
return <TimeSeries
card
style={{ margin: 12 }}
values={[1, 2, 3]}
labels={['a', 'b', 'c']}
/>
}
Expected behavior
The margin is applied
Actual behavior
The component starts stretching forever
Screenshots or video
Desktop (please complete the following information)
- OS: macOS
- Browser: Chrome
- UI Kit Version: 0.5.5