From ece512ec24120028263ebed4af629e0bff38aef3 Mon Sep 17 00:00:00 2001 From: Manish Dait Date: Tue, 28 Mar 2023 18:35:25 +0530 Subject: [PATCH] fix(legend): inherit color of legend. close #18196 --- src/component/legend/LegendView.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/legend/LegendView.ts b/src/component/legend/LegendView.ts index 5b4a342599..aab98d7b04 100644 --- a/src/component/legend/LegendView.ts +++ b/src/component/legend/LegendView.ts @@ -422,7 +422,7 @@ class LegendView extends ComponentView { fill: isSelected ? textStyleModel.getTextColor() : inactiveColor, align: textAlign, verticalAlign: 'middle' - }) + },{inheritColor: isSelected ? textStyleModel.getTextColor() : inactiveColor}) })); // Add a invisible rect to increase the area of mouse hover