app/components/optics/button/component.rb in optics_view_components-0.1.1 vs app/components/optics/button/component.rb in optics_view_components-0.1.2

- old
+ new

@@ -17,11 +17,13 @@ accepts :variant, default: 'default' accepts :url def call build_button do - leading_icon - label + capture do + concat leading_icon + concat label + end end end def build_button(&) return link_to(url, class: classes, **@attributes, &) if url