From ae6211629fd5ed56f98bceb83e9355a74b962dc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Benitte?= Date: Sat, 21 Dec 2019 08:24:44 +0900 Subject: [PATCH] fix(legends): make sure to pass the theme object when using canvas legends --- packages/bar/src/BarCanvas.js | 1 + packages/waffle/src/WaffleCanvas.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/bar/src/BarCanvas.js b/packages/bar/src/BarCanvas.js index 05e690953..436b6227b 100644 --- a/packages/bar/src/BarCanvas.js +++ b/packages/bar/src/BarCanvas.js @@ -177,6 +177,7 @@ class BarCanvas extends Component { containerHeight: height, itemTextColor: '#999', symbolSize: 16, + theme, }) }) diff --git a/packages/waffle/src/WaffleCanvas.js b/packages/waffle/src/WaffleCanvas.js index 7b3edc82e..b35bb44bf 100644 --- a/packages/waffle/src/WaffleCanvas.js +++ b/packages/waffle/src/WaffleCanvas.js @@ -112,6 +112,7 @@ class WaffleCanvas extends Component { data: legendData, containerWidth: width, containerHeight: height, + theme, }) }) }