1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-07 14:35:23 +02:00

Add transitions to buttons and other common design system elements (#1924)

This commit is contained in:
Zach Gollwitzer 2025-02-28 09:29:07 -05:00 committed by GitHub
parent d6793dec05
commit 882857fcf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 27 deletions

View file

@ -16,7 +16,7 @@
<%= form.text_field :last_name, placeholder: t(".last_name"), label: t(".last_name") %>
</div>
<div class="flex justify-end mt-4">
<%= form.submit t(".save"), class: "bg-gray-900 hover:bg-gray-700 cursor-pointer text-white rounded-lg px-3 py-2" %>
<%= form.submit t(".save"), class: "btn btn--primary" %>
</div>
</div>
<% end %>
@ -136,7 +136,7 @@
</div>
<%=
button_to t(".reset_account"), reset_user_path(@user), method: :delete,
class: "bg-orange-500 text-white text-sm font-medium rounded-lg px-4 py-2",
class: "btn btn--destructive",
data: { turbo_confirm: {
title: t(".confirm_reset.title"),
body: t(".confirm_reset.body"),
@ -153,7 +153,7 @@
</div>
<%=
button_to t(".delete_account"), user_path(@user), method: :delete,
class: "bg-red-500 text-white text-sm font-medium rounded-lg px-3 py-2",
class: "btn btn--destructive",
data: { turbo_confirm: {
title: t(".confirm_delete.title"),
body: t(".confirm_delete.body"),