-
Notifications
You must be signed in to change notification settings - Fork 4.8k
No way to set custom style for rows #48109
Copy link
Copy link
Closed
Labels
[Block] ColumnsAffects the Columns BlockAffects the Columns Block[Block] GroupAffects the Group Block (and row, stack and grid variants)Affects the Group Block (and row, stack and grid variants)[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Metadata
Metadata
Assignees
Labels
[Block] ColumnsAffects the Columns BlockAffects the Columns Block[Block] GroupAffects the Group Block (and row, stack and grid variants)Affects the Group Block (and row, stack and grid variants)[Feature] LayoutLayout block support, its UI controls, and style output.Layout block support, its UI controls, and style output.[Type] EnhancementA suggestion for improvement.A suggestion for improvement.
Type
Fields
Give feedbackNo fields configured for issues without a type.
What problem does this address?
Currently, you can only use
register_block_styleto register styles for the parent group block.What is your proposed solution?
Add ability to target rows (and stacks for that matter). In my case, the use case is that I'm going to add a style to rows only that would wrap the row with a "three-col-max-per-row" class so I can have more control over the style of a column-like grid layout. Unfortunately the columns block is currently pretty limiting. Example: if I want three equal columns on large screen, condensed down to two columns on a laptop and one on mobile, I can't do that unless I write specific custom CSS into the theme.
Alt option would be to add a "max / min columns" to the columns block. Might also require a toggle of some sort to set columns as equal width.