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