Is it yet possible to customize size and colors of the Tabs directy with “style” lines. Default parameters are set to a thin blue border (in vertical mode) which appears when a tab is selected. Is it editable ?
I hope you can help me. I really like Dash and things that we can do with it !!
Thanks
You can edit the overall container Tabs, and have those cascade to the tab elements using the style={} keyword argument, but that won’t change some of the style elements which vary for the individual tabs. For example, I made the font bold
I am able to edit the fonts of the Tab headers, but the thin blue border appearing when a tab is selected - i want to change that color? unable to do so!
You can either change the color directly in the .js file or add a new prop to be able to change the color in Python.
However, I suspect there’s a better long-term solution here. Perhaps adding a tabActiveStyle prop and a tabDefaultStyle prop for full customizability ?
@chriddyp I would like to set tab’s styles from CSS file, as I load different .css for user based on his palette preference. Is it possible to completely disable inline styling and use .css files? As now inline styles override my styling.
Setting custom styling with style attribute of dcc.Tab will require storing the colors definition in two places: .css file and .py or other place easily readable by python. Which I would like to avoid.
It only took two days, and I’ve figured it out I could not get styles to apply to the Tabs, neither with direct styling nor via .css. And the culprit was the css file ordering during loading - simple things, sometimes, are hard to catch.