BBCode on buttons

Godot Version

4.7.2

Question

Is it possible to use BBText on buttons?
I wanted to add a second, small icon aligned with the text. BBCode allows for that, but does not seem compatible with buttons

Is there a fix for this other than adding a RichTextLabel with mouse set to ignore as a child of the button? Wich would require setting custom behaviours for the button to maintain an appropriate size as it’s child label changes size

Thank you in advance for your help

Parent the label to the button, set centered anchored layout for the label and children clipping for the button.

Won’t that lead to the label getting clipped?

It will. If you don’t want clipping - don’t enable it.

If you want to limit the minimal size of the button to the size of the label - parent both to a panel container and resize the container.

(post deleted by author)

Parenting both to a control does seem like it might do a significant portion of the heavy lifting regarding keeping both at appropriate sizes. Thank you for the suggestion!