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.
Setting the icon to display at the bottom kind of works, but I still can’t get it rotated…
I ended up just making my own button using a flex container with an icon and label within it.
Just wondering, how did you rotate the label?
Add these styles:
You can’t use rotate in a flex container, well you can, but have fun
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.
That’ll work too, many ways to do things in Ignition!