Skip to content

[Heatmap] Cell values should automatically invert color based on contrast #1296

@dej611

Description

@dej611

Describe the bug

Cell values are displayed with the selected color without taking into account the background contrast.
Here's an example:

Expected behaviour

The background color should be considered when assigning the font color to the cell value accordingly with the contrast measurement.
Extra feature: add a way to pass the page background color as well to handle constrast measurement with rgba values (we hit this bug already in table Lens dynamic coloring).

Kibana Cross Issues
Kibana cross issue

Checklist

Delete any items that are not applicable to this issue.

  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present

Metadata

Metadata

Assignees

Labels

:LensKibana Lens related issuebugSomething isn't workingkibana cross issueHas a Kibana issue counterpartreleasedIssue released publicly

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