RadioGroup appearance

With Bokeh 2.2.3, is there a mechanism to set spacing between buttons of a RadioGroup? I’d like to have some control over these so they can be more flexibly aligned with icons in one of my documents.

Here’s a snapshot of the current appearance; ideally, I’d prefer to have the buttons and their associated images aligned along their centerlines.

Screen Shot 2021-02-04 at 1.48.32 PM

Probably worth opening an issue over this, I don’t think radio buttons + icons has ever gotten any specific attention past whatever original basic implementation work there was. I’m guessing it must not be a commonly used combination. For now, there may be manual CSS tweaks you could make (probably easiest to just open the page in a browser to see what changes might work). You can specify css_classes for the widget and add the associated CSS rules in the page template.

1 Like