Skip to content

Commit

Permalink
Fix screenreader a11y error on challenge manager and evaluator stats
Browse files Browse the repository at this point in the history
  • Loading branch information
emmabjj committed Jan 16, 2025
1 parent d6f5fc1 commit da28453
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/views/phases/_submissions_stats.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@

<div class="display-flex flex-row tablet:margin-left-auto">
<div class="text-center margin-right-5">
<span class="font-sans-xl text-green text-bold"><%= @submissions_by_status[:completed] || 0 %></span><br>
<span class="font-sans-xl text-green text-bold display-block"><%= @submissions_by_status[:completed] || 0 %></span>
<span class="font-sans-lg text-green text-bold">Completed</span>
</div>
<div class="text-center margin-right-5">
<span class="font-sans-xl text-accent-warm-dark text-bold"><%= @submissions_by_status[:in_progress] || 0 %></span><br>
<span class="font-sans-xl text-accent-warm-dark text-bold display-block"><%= @submissions_by_status[:in_progress] || 0 %></span>
<span class="font-sans-lg text-accent-warm-dark text-bold">In Progress</span>
</div>
<div class="text-center margin-right-2">
<span class="font-sans-xl text-secondary-dark text-bold"><%= @submissions_by_status[:not_started] || 0 %></span><br>
<span class="font-sans-xl text-secondary-dark text-bold display-block"><%= @submissions_by_status[:not_started] || 0 %></span>
<span class="font-sans-lg text-secondary-dark text-bold">Not Started</span>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions app/views/shared/_assignment_stats.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@

<div class="display-flex flex-row tablet:margin-left-auto">
<div class="text-center margin-right-1 margin-left-neg-1 tablet:margin-right-5">
<span class="font-sans-xl text-success-dark text-bold"><%= @submissions_count["completed"] || 0 %></span><br>
<span class="font-sans-xl text-success-dark text-bold display-block"><%= @submissions_count["completed"] || 0 %></span>
<span class="font-sans-lg text-success-dark text-bold">Completed</span>
</div>
<div class="text-center margin-right-1 tablet:margin-right-4">
<span class="font-sans-xl text-accent-warm-dark text-bold"><%= @submissions_count["in_progress"] || 0 %></span><br>
<span class="font-sans-xl text-accent-warm-dark text-bold display-block"><%= @submissions_count["in_progress"] || 0 %></span>
<span class="font-sans-lg text-accent-warm-dark text-bold">In Progress</span>
</div>
<div class="text-center margin-right-1 tablet:margin-right-2">
<span class="font-sans-xl text-error-dark text-bold"><%= @submissions_count["not_started"] || 0 %></span><br>
<span class="font-sans-xl text-error-dark text-bold display-block"><%= @submissions_count["not_started"] || 0 %></span>
<span class="font-sans-lg text-error-dark text-bold">Not Started</span>
</div>
</div>
Expand Down

0 comments on commit da28453

Please sign in to comment.