app/components/coco/app/elements/alert/alert.html.erb in coveragebook_components-0.7.9 vs app/components/coco/app/elements/alert/alert.html.erb in coveragebook_components-0.7.10
- old
+ new
@@ -22,11 +22,16 @@
<%= content %>
</p>
<% if link? %>
<div class="alert-link" data-role="link">
- <%= link %>
+ <%= helpers.coco_link(
+ *@link_data[:args],
+ **@link_data[:kwargs],
+ size: :sm,
+ &@link_data[:block]
+ ) %>
</div>
<% end %>
</div>
<% if action? || secondary_action? %>
@@ -34,19 +39,29 @@
<% if action? %>
<div class="alert-action"
x-ref="action"
@click="dismiss"
data-role="action">
- <%= action %>
+ <%= coco_button(
+ *@action_data[:args],
+ **@action_data[:kwargs],
+ size: :sm,
+ &@action_data[:block]
+ ) %>
</div>
<% end %>
<% if secondary_action? %>
<div class="alert-action"
x-ref="secondaryAction"
@click="dismiss"
data-role="secondary-action">
- <%= secondary_action %>
+ <%= coco_button(
+ *@secondary_action_data[:args],
+ **@secondary_action_data[:kwargs],
+ size: :sm,
+ &@secondary_action_data[:block]
+ ) %>
</div>
<% end %>
</div>
<% end %>
</div>
\ No newline at end of file