generateblocks icon indicating copy to clipboard operation
generateblocks copied to clipboard

Use classes for alignments

Open loxK opened this issue 5 years ago • 2 comments

When aligning an item an inline CSS is generated (eg: text-align: center;)

So, with custom CSS, it is not possible to target elements based on the alignment chosen by the users.

WordPress used such classes, for the media-text block it can get "has-media-on-the-right".

loxK avatar Nov 03 '20 01:11 loxK

I'm not sure using utility classes for alignment is a great idea, as they don't really work for responsive aligning on tablet/mobile. You'd need separate classes for each device.

Perhaps adding a custom class if you want/need users to target an element based on alignment would be sufficient?

tomusborne avatar Jul 07 '21 21:07 tomusborne

A custom class is overcomplicated for some end users.

loxK avatar Jul 14 '21 13:07 loxK