Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pie Chart Tooltip text color not showing in dark mode #28

Open
IndigoWizard opened this issue Oct 9, 2023 · 0 comments
Open

Pie Chart Tooltip text color not showing in dark mode #28

IndigoWizard opened this issue Oct 9, 2023 · 0 comments

Comments

@IndigoWizard
Copy link

When streamlit app is in dark mode, the tooltip of the nivo Pie chart displays white text on white tooltip background instead of black (or any discernible color) on white or white text on dark background.

What I tried

  • I tried to add a tooltip by examining the react code but I couldn't implement it.
  • I tried using the CSS hack injected through st.markdown() but it doesn't work in case of an iframe, which is the case for streamlit-elements nivo pie chart, its not possible to reach the element by class or id to affect the text color.

Config

  • Streamlit 1.27.2
  • Streamlit-elements 0.1.0
  • Python 3.10.2

Preview

streamlit-elements-nivo-pie-chart-tooltip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant