romanonatacha / dash_trich_components

trich.ai open source components library for Dash Plotly. Contribute!
https://romanonatacha.github.io/dash_trich_components/
MIT License
53 stars 6 forks source link

[Bug] Sidebar - text_color not working #42

Open JorgeMiguelGomes opened 2 years ago

JorgeMiguelGomes commented 2 years ago

What is the issue

text_color not changing

Example

app.layout = html.Div([
    dtc.SideBar([
        dtc.SideBarItem(id='id_1', label="Label 1", icon="fa fa-clock"),
        dtc.SideBarItem(id='id_2', label="Label 2", icon="fa fa-calendar"),
        dtc.SideBarItem(id='id_3', label="Label 3", icon="fa fa-fire"),
        dtc.SideBarItem(id='id_4', label="Label 4", icon="fa fa-cloud-showers-heavy"),
        dtc.SideBarItem(id='id_5', label="Label 5", icon="fas fa-circle-info"),
    ],bg_color="#000000",text_color="#FFFFFF"),
    html.Div([
    ], id="page_content"),

Behaviour

No matter what the value of text_color app always returns a different value.
The default value of #FFFFFF is actually returning #BDBCBF as you can see in the image

dash_trich_components_sidebar_text_color_bug

Disabling all external stylesheets, except for Font Awesome does not solve the issue