Version
5.4.1
Link to Minimal Reproduction
https://codepen.io/juliepagano_cs/pen/XWBzLaJ
Steps to Reproduce
- Open the codepen
- Note that the non-rich text in the legend is red (the value specified in
legend.textStyle.color).
- Note that the rich text in the legend is green (the value specified in the theme's
textStyle.color).
- Click an item in the legend.
- Note that the non-rich text in the legend is blue (the value specified in
legend.inactiveColor).
- Note that the rich text in the legend is green (the value specified in the theme's
textStyle.color).
- Comment out the
textStyle.color in the theme and note that the rich and non-rich text match the legend configuration.
Current Behavior
When a chart's theme specifies textStyle.color, rich text within the legend configuration inherits from the theme's text color instead of the colors configured in the legend.
Expected Behavior
I would expect rich text within a legend to inherit from the legend's color configuration (legend.textStyle.color when active and legend.inactiveColor when inactive).
Environment
- OS: macOS Monterey
- Browser: Chrome 108.0.5359.124
- Framework: the bug is not framework specific, but we are working in React
Any additional comments?
No response
Version
5.4.1
Link to Minimal Reproduction
https://codepen.io/juliepagano_cs/pen/XWBzLaJ
Steps to Reproduce
legend.textStyle.color).textStyle.color).legend.inactiveColor).textStyle.color).textStyle.colorin the theme and note that the rich and non-rich text match the legend configuration.Current Behavior
When a chart's theme specifies
textStyle.color, rich text within the legend configuration inherits from the theme's text color instead of the colors configured in the legend.Expected Behavior
I would expect rich text within a legend to inherit from the legend's color configuration (
legend.textStyle.colorwhen active andlegend.inactiveColorwhen inactive).Environment
Any additional comments?
No response