Change link text color when clicked

The following code should render a white text link but always returns a dark blue text, as if link was clicked

                    dcc.Link("Logout", href="logout", target="_top"),
                    style={"color": "white"}

in this case, which params I should pass in style dict ??

You should pass style to dcc.Link and not html.A. Note that dcc.Link is basically an <a> tag, so you might not need it. In summary, this should work:

dcc.Link("Logout", href="logout", target="_top", style={"color": "white"})
1 Like

Thanks, that’s it!