From ba7e8d38939b98ddc74e0f73510805a69ea29418 Mon Sep 17 00:00:00 2001 From: Eran Avidor Date: Tue, 1 Jul 2025 20:53:36 +0300 Subject: [PATCH] Fix/design system violations (#2422) * fix: replace hardcoded bg-white with bg-container in notification notice * fix: replace hardcoded text-white with fg-inverse in notification CTA * fix: replace hardcoded text-white with fg-inverse in text tooltip * fix: replace hardcoded bg-gray-900 text-white with bg-inverse fg-inverse in invitations form * fix: replace hardcoded bg-gray-800 text-white with bg-inverse fg-inverse in AI consent form * fix: replace hardcoded text-white with fg-inverse in changelog page * fix: replace hardcoded text-white and border-gray-500 with fg-inverse and border-secondary in investment tooltip * fix: replace hardcoded text-white with fg-inverse in holdings missing price tooltip * fix: replace hardcoded text-white and bg-gray-400 with fg-inverse and bg-surface-inset in settings profiles * fix: replace hardcoded bg-orange-500 text-white with bg-yellow-600 fg-inverse in settings hosting danger zone --------- Co-authored-by: Eran Avidor --- app/views/chats/_ai_consent.html.erb | 2 +- app/views/holdings/_missing_price_tooltip.html.erb | 2 +- app/views/investments/_value_tooltip.html.erb | 10 +++++----- app/views/invitations/new.html.erb | 2 +- app/views/pages/changelog.html.erb | 2 +- .../settings/hostings/_danger_zone_settings.html.erb | 4 ++-- app/views/settings/profiles/show.html.erb | 2 +- app/views/shared/_text_tooltip.erb | 2 +- app/views/shared/notifications/_cta.html.erb | 2 +- app/views/shared/notifications/_notice.html.erb | 2 +- 10 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/views/chats/_ai_consent.html.erb b/app/views/chats/_ai_consent.html.erb index f3a97c3e..e96d2570 100644 --- a/app/views/chats/_ai_consent.html.erb +++ b/app/views/chats/_ai_consent.html.erb @@ -18,7 +18,7 @@ <%= form_with url: user_path(Current.user), method: :patch, class: "w-full", data: { turbo: false } do |form| %> <%= form.hidden_field "user[ai_enabled]", value: true %> <%= form.hidden_field "user[redirect_to]", value: "home" %> - <%= form.submit "Enable Maybe AI", class: "cursor-pointer hover:bg-black w-full py-2 px-4 bg-gray-800 text-white rounded-lg text-sm font-medium" %> + <%= form.submit "Enable Maybe AI", class: "cursor-pointer hover:bg-inverse-hover w-full py-2 px-4 bg-inverse fg-inverse rounded-lg text-sm font-medium" %> <% end %> <% end %> diff --git a/app/views/holdings/_missing_price_tooltip.html.erb b/app/views/holdings/_missing_price_tooltip.html.erb index e24fa310..f2f59201 100644 --- a/app/views/holdings/_missing_price_tooltip.html.erb +++ b/app/views/holdings/_missing_price_tooltip.html.erb @@ -4,7 +4,7 @@ <%= tag.span t(".missing_data"), class: "font-normal text-xs" %>