Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(legends): Respect theme fill color (#941)
This fixes #814 - or so I hope The fill color of the legend text is currently not themeable because the fill from the theme is always overwritten by either the style from the local component state (my understanding is that this style is from mouse hover effects) or the value of the `textColor` prop which defaults to `black`. This line would still allow the local state to take precendence, but would then pick the theme's legend text fill color as a backup and only then resort to the `textColor` props. Disclaimer: This is the first time ever I look at the Nivo code so there might be more subtle things that I'm overlooking.
- Loading branch information