Mohamed-512 / Extra-Streamlit-Components

An all in one place, to find complex or just not available components by default on streamlit.
Apache License 2.0
466 stars 59 forks source link

Fix TabBar active tab not respecting custom streamlit theme #37

Closed HIL340 closed 6 months ago

HIL340 commented 1 year ago

The TabBar component only partially respects the global streamlit theme.

As seen in the image below, the <hr> is blue (matching the custom streamlit theme) while the active tab still shows as the default pink/red.

Before: image

This PR updates the active tab styling to correctly make use of the custom streamlit theme via the --primary-color css variable.

After:

image