Skip to content

Commit

Permalink
Only color checkmark
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Dec 9, 2024
1 parent 18645b2 commit 5a0144a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/assets/stylesheets/components/evaluations.css.scss
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@
color: inherit;
}

&.completed {
i.completed {
color: var(--d-secondary) !important;
}
}
Expand Down
13 changes: 7 additions & 6 deletions app/views/evaluations/_feedback_status.html.erb
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
<%= link_to evaluation_feedback_path(evaluation, feedback),
title: feedback_title(feedback),
"data-bs-toggle": "tooltip",
class: "feedback btn btn-icon #{local_assigns.fetch(:active, false) ? 'disabled' : ''} #{feedback.completed? ? 'completed' : ''}" do %>
class: "feedback btn btn-icon #{local_assigns.fetch(:active, false) ? 'disabled' : ''}" do %>
<svg viewBox="0 0 24 24" width="24px" height="24px" style="overflow: visible" >
<g>
<foreignObject x="0" y="0" height="24" width="24">
<% if feedback.completed? %>
<i class="mdi mdi-comment-check-outline"></i>
<% else %>
<i class="mdi mdi-comment-outline"></i>
<% end %>
<i class="mdi mdi-comment-outline"></i>
</foreignObject>
<% if feedback.completed? %>
<foreignObject x="6" y="1" height="16" width="12">
<i class="mdi mdi-check-bold mdi-12 completed"></i>
</foreignObject>
<% end %>
<circle cx="21" cy="22.25" r= "9" fill="var(--d-surface)"></circle>
<foreignObject x="12" y="12" height="18" width="18">
<% if feedback&.submission.present? %>
Expand Down

0 comments on commit 5a0144a

Please sign in to comment.