Skip to content

TimeSeries component infinite stretching when setting a margin #213

Description

@GabrielMusatMestre

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

ui-kit-component-stretching

Desktop (please complete the following information)

  • OS: macOS
  • Browser: Chrome
  • UI Kit Version: 0.5.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions