Skip to content

Commit d8aab0e

Browse files
committed
Make flex_block helper more flexible for options
1 parent fa7b246 commit d8aab0e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
module PhlexConcerns::FlexBlock
22
def flex_block(options = {}, &)
3-
div(class: "flex items-start flex-col space-col-4 grid-cols-12 md:items-center md:flex-row md:space-row-4 #{options[:class]}", &)
3+
div(
4+
**mix(options, class: "flex items-start flex-col space-col-4 grid-cols-12 md:items-center md:flex-row md:space-row-4"),
5+
&
6+
)
47
end
58
end

0 commit comments

Comments
 (0)