app/components/solidus_admin/ui/modal/component.html.erb in solidus_admin-0.2.0 vs app/components/solidus_admin/ui/modal/component.html.erb in solidus_admin-0.3.0
- old
+ new
@@ -12,16 +12,16 @@
<header class="flex items-center justify-between p-4 sticky top-0 bg-inherit">
<h3 class="text-xl font-semibold text-gray-900">
<%= @title %>
</h3>
- <%= render component('ui/button').new(
- tag: :a,
- href: @close_path,
- icon: 'close-line',
- scheme: :ghost,
- title: t('.close'),
- ) %>
+ <form method="dialog">
+ <%= render component('ui/button').new(
+ icon: 'close-line',
+ scheme: :ghost,
+ title: t('.close'),
+ ) %>
+ </form>
</header>
<div class="p-4 overflow-auto">
<%= content %>
</div>