How can I rotate text and icon in a button? I can rotate text (sort of) with a CSS transform, but:
this only rotates the text, the icon doesn’t come with it (icon stays where it was)
bounds still use the width of the button, e.g. if the width of the button doesn’t support the length of the text, it will line-wrap, despite the height of the button fully supporting the length of the text when rotated.
but still the same, add a coordinate container to the flex container and then add the button on the coordinate.
Rotate and play with the binding and widths and heights to make sure that the button uses all available space in the container.
I typically trim down the icon list and make my own subset file with only the used icons so the whole file doesn't have to be loaded. It does make a difference when I have multiple icons loading in multiple templates. Each call to the icon library loads the entire file (11KB vs 489KB)