From 7acee4d59d22790841879df92e83d2acce71ef9e Mon Sep 17 00:00:00 2001 From: Kevin Date: Sat, 22 Jul 2023 15:08:51 +0100 Subject: [PATCH] Fix: V2 project submissions title hover in dark mode Because: * Hovering on the submission title in dark mode makes the title too dark to read. This commit: * Make the title link lighter when hovering on dark mode. --- app/components/project_submissions/title_component.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/components/project_submissions/title_component.html.erb b/app/components/project_submissions/title_component.html.erb index 80cd2626d9..9991c06845 100644 --- a/app/components/project_submissions/title_component.html.erb +++ b/app/components/project_submissions/title_component.html.erb @@ -1,5 +1,5 @@ <% if url.present? %> - <%= link_to title, url, class: 'truncate max-w-xs lgs:max-w-lg font-medium text-lg break-words hover:text-gray-800', data: { turbo_frame: '_top' } %> + <%= link_to title, url, class: 'truncate max-w-xs lgs:max-w-lg font-medium text-lg break-words hover:text-gray-800 dark:hover:text-gray-200', data: { turbo_frame: '_top' } %> <% else %>

<%= title %>

<% end %>