Skip to content

[Eui(Dual)Range] Levels not positioning correctly #5172

@elizabetdev

Description

@elizabetdev

As mentioned on #4815 as a known issue, the Eui(Dual)Range levels are not being positioned correctly.

As we can notice on a old version, 31.9.0 (CodeSandbox), the ticks and levels don't quite match:

Screenshot 2021-09-13 at 15 46 57

We fixed the ticks and updated the styles for Amsterdam but in our latest version 37.7.0 the levels still not positioning correctly (CodeSandbox)

Screenshot 2021-09-13 at 15 48 56

Expectation

When passing the following levels and tick objects we expect the positions to match.

const levels = [
    {
      min: 0,
      max: 25,
      color: "primary"
    },
    {
      min: 25,
      max: 50,
      color: "success"
    },
    {
      min: 50,
      max: 75,
      color: "warning"
    },
    {
      min: 75,
      max: 100,
      color: "danger"
    }
  ]

  const ticks = [
    { label: "warning", value: 0 },
    { label: "minor", value: 25 },
    { label: "major", value: 50 },
    { label: "critical", value: 75 }
  ];

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions