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

TabBar colors doesn't match theme #45

Closed tp-rbrasset closed 6 months ago

tp-rbrasset commented 1 year ago

I tried to use custom streamlit theme while using the TabBar and it seems to not work.

When inspecting with the chrome web tool, it seems that the bootstrap.min.css defines and apply the --stremlit-primary-color as the color of the TabBar.

Is it a bug or am I doing something wrong?

tp-rbrasset commented 1 year ago

Anyone?

elijahnicpon commented 1 year ago

I came across this as well. Looks like there is an open PR, #37, that solves this issue (along with a similar issue with BoundingImage and StepperBar, by changing --stremlit-primary-color to --primary-color in the css). @Mohamed-512 would you mind merging this one? Thank you!!

tp-rbrasset commented 1 year ago

@elijahnicpon Thank you for the information. Can't wait for the PR to be merged!

Mohamed-512 commented 6 months ago

Fixed in version 0.1.70

alex-milanovic commented 3 months ago

@Mohamed-512 It seems these changes are not applied in 0.1.70 or 0.1.71 in the PyPI build? When I inspect the files it shows the old CSS

benlindsay commented 3 months ago

Confirmed, tab_bar isn't respecting the primary color for me with version 0.1.70 either