I updated my app to bokeh 3.0.0. and I am trying to migrate everything. There are as well some changes to CSS and how it is handled. I am not an expert in that part. I used to have a global css file that handles all the styles. As I read in the migration guide, that is not possible any more. The little discription in the migration guide is not quite helpful for me. Can someone explain to me very shortly with an example how I can add css_classes to an object, for example a button?
That show a few methods to apply styles, you could search examples for those usages.
@Timo wasn’t there some docs support added as well? I thought so, but I can’t find where.
how I can add css_classes to an object, for example a button?
You can add CSS classes to a Bokeh object with css_classes the same as always, but now I am actually not sure what continued purpose that serves. Hopeful @mateusz can comment about what css_classes is still useful for.
How can I add styles for each state (focus, active, hover, default) to the button? And I have the issue, that the font settings I define do not have any effect on the button.
Maybe you know what I am doing wrong.
A couple of ideas but please note that I am by no means an expert in CSS. But it seems that in Bokeh version 3 the change to shadow DOM elements breaks ones old setup. Now it seems you can use stylesheets go style the bk-btn within a shadow DOM. In the example below I use