Skip to content

Commit 32005e3

Browse files
committed
fix(columns): also target non columns block with column innerblocks
1 parent d8cab82 commit 32005e3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/block/columns/style.scss

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717

1818
// Add a 0 specificity style to set the default column order. This is to prevent
1919
// the column order from spilling to nested blocks.
20-
:where(.stk-block-columns) {
20+
// Target the stk-column-wrapper to also include blocks with column innerblocks
21+
// but are not columns (no stk-block-columns), like accordion and horizontal scroller.
22+
:where(.stk-column-wrapper) {
2123
@for $i from 1 through 20 {
22-
--stk-col-order-#{ $i }: #{ $i };
24+
--stk-col-order-#{ $i }: initial;
2325
}
2426
}
2527

0 commit comments

Comments
 (0)