-
Notifications
You must be signed in to change notification settings - Fork 133
Adjust the color contrast based on the background color #589
Copy link
Copy link
Closed as not planned
Labels
:TSVBKibana TSVB relatedKibana TSVB related:accessibilityAccessibility related issueAccessibility related issue:annotationAnnotation (line, rect, text) related issueAnnotation (line, rect, text) related issue:colorscolors related issuecolors related issue:xyBar/Line/Area chart relatedBar/Line/Area chart relatedImpact:MediumbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestkibana cross issueHas a Kibana issue counterpartHas a Kibana issue counterpart
Metadata
Metadata
Assignees
Labels
:TSVBKibana TSVB relatedKibana TSVB related:accessibilityAccessibility related issueAccessibility related issue:annotationAnnotation (line, rect, text) related issueAnnotation (line, rect, text) related issue:colorscolors related issuecolors related issue:xyBar/Line/Area chart relatedBar/Line/Area chart relatedImpact:MediumbugSomething isn't workingSomething isn't workingenhancementNew feature or requestNew feature or requestkibana cross issueHas a Kibana issue counterpartHas a Kibana issue counterpart
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
The chart is currently rendered on a transparent background. We have two main themes, one for a light background and one for a dark one.
The issue comes out when the user wants to apply a different color to the background: the existing themes are no longer valid in every case for an AA accessibly point of view.
Moreover, the legend is rendered in html that means that it only currently reflect the colors applied through importing the correct CSS method.
A possible solution is:
Themejs object, including the text color of the legendSettingsprop, this will allow us to tweaks the colors for a better contrast, and also return the current WCAG accessibility level if required.To Reproduce
Steps to reproduce the behavior:
chartelement in the playground cssExpected behavior
The light and dark theme should be revisited as a semantic theme, that applies in all possible cases adapting the colors to the background.
A similar approach should be applied to #238
Screenshots

with light theme:
with dark theme:

Kibana Cross Issues
Checklist
Kibana Cross Issueslistkibana cross issuetag is associated to the issue if any kibana cross issue is present