app/components/bs5/alert_component.html.erb in bs5-0.0.4 vs app/components/bs5/alert_component.html.erb in bs5-0.0.5
- old
+ new
@@ -1,6 +1,6 @@
<div class="<%= component_class %>" role="alert">
<%= content %>
<%- if is_dismissable %>
- <button type="button" class="btn-close" data-dismiss="alert" aria-label="Close"></button>
+ <%= render Bs5::CloseButtonComponent.new(data: { dismiss: :alert }) %>
<%- end %>
</div>
\ No newline at end of file