app/components/coco/app/elements/alert/alert.html.erb in coveragebook_components-0.7.10 vs app/components/coco/app/elements/alert/alert.html.erb in coveragebook_components-0.8.0.beta.1
- old
+ new
@@ -1,10 +1,10 @@
<%= render component_tag(x: {
data: "appAlert",
- show: "!dismissed",
bind: "root",
- cloak: true
+ show: "!dismissed",
+ cloak: (true if cloak?)
}, class: {
"with-title": title?,
"vivid": vivid?
}) do %>
<div class="alert-container">
@@ -42,11 +42,11 @@
@click="dismiss"
data-role="action">
<%= coco_button(
*@action_data[:args],
**@action_data[:kwargs],
- size: :sm,
+ size: button_size,
&@action_data[:block]
) %>
</div>
<% end %>
@@ -56,10 +56,10 @@
@click="dismiss"
data-role="secondary-action">
<%= coco_button(
*@secondary_action_data[:args],
**@secondary_action_data[:kwargs],
- size: :sm,
+ size: button_size,
&@secondary_action_data[:block]
) %>
</div>
<% end %>
</div>
\ No newline at end of file