diff --git a/app/components/tailwind/button_component.html.erb b/app/components/tailwind/button_component.html.erb index 84ca7b16b..4f294087f 100644 --- a/app/components/tailwind/button_component.html.erb +++ b/app/components/tailwind/button_component.html.erb @@ -1,13 +1,13 @@ <% if @tag == :a %> <%= link_to @href, @options do %> -
+
<% if @icon %>
<%= render Tailwind::Icon.new(name: @icon) %>
<% end %>
<%= content %>
<% end %> <% elsif @tag == :button %> <%= button_tag @options do %> -
+
<% if @icon %>
<%= render Tailwind::Icon.new(name: @icon) %>
<% end %>
<%= content %>
diff --git a/app/views/_tailwind/applications/show.html.erb b/app/views/_tailwind/applications/show.html.erb index 9d7008d40..746c86f7b 100644 --- a/app/views/_tailwind/applications/show.html.erb +++ b/app/views/_tailwind/applications/show.html.erb @@ -179,7 +179,7 @@

Be polite, clear and to the point so your comment gets listened to.

-
+
<%= render Tailwind::ButtonComponent.new(tag: :a, size: "2xl", type: :primary, href: new_user_registration_path) do %> Create an account <% end %>