I have setup a component for a simple 2 column layout for my site (heading/body text on left; image on right).
I would like to make a variant with the content reversed (so image is on the left; heading/body text on right). I have tried everything I can think of and cannot figure this out…
Whenever I change the order of the content in a variant, it changes for all… making me realize this is not a property that can be stored in a variant.
How would I make a component so I have a variant for the “image on left” vs “image on right” variants?
That would be a different layout issue, where you’ve given your elements relative or absolute positioning. You don’t want that. Everything in this construction should be the natural, default, static positioning.
Correct. It must be a flex, columns, grids, quickstack etc. do not have the HTML reverse direction feature we’re using here, though in some cases I suspect that typography RTL can be used as a hack.