Skip to content

Commit 09571bb

Browse files
add blue highlighting
1 parent bb128f4 commit 09571bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/quizzes/_result.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<% sorted_traits = ['warrior','athlete','artist'].sort_by { |p| -percentages[p].to_f } %>
99
<% sorted_traits.each_with_index do |p, index| %>
1010
<%= link_to quiz_result_path(trait: p), data: { turbo_frame: "trait_description" },
11-
class: "block cursor-pointer hover:bg-gray-50 transition-colors duration-200 p-3 rounded border #{'bg-blue-50 border-blue-300' if index == 0}" do %>
11+
class: "block cursor-pointer hover:bg-gray-50 transition-colors duration-200 p-3 rounded border #{'bg-blue-50 border-blue-300' if @current_trait == p}" do %>
1212
<div class="flex justify-between items-center">
1313
<div class="font-semibold capitalize flex items-center gap-2">
1414
<%= p %>

0 commit comments

Comments
 (0)