Skip to content

Commit

Permalink
Merge pull request #362 from GSA/88_screenreader_a11y_fix
Browse files Browse the repository at this point in the history
[88] Fix Screenreader A11y Error - Stats
  • Loading branch information
emmabjj authored Jan 16, 2025
2 parents d6f5fc1 + a616868 commit 2e0d619
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 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
6 changes: 3 additions & 3 deletions spec/requests/evaluations_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@
expect(response.body).to include("In Progress")
expect(response.body).to include("Not Started")

expect(response.body).to include('<span class="font-sans-xl text-success-dark text-bold">1</span>')
expect(response.body).to include('<span class="font-sans-xl text-accent-warm-dark text-bold">1</span>')
expect(response.body).to include('<span class="font-sans-xl text-error-dark text-bold">1</span>')
expect(response.body).to include('<span class="font-sans-xl text-success-dark text-bold display-block">1</span>')
expect(response.body).to include('<span class="font-sans-xl text-accent-warm-dark text-bold display-block">1</span>')
expect(response.body).to include('<span class="font-sans-xl text-error-dark text-bold display-block">1</span>')
end
end

Expand Down

0 comments on commit 2e0d619

Please sign in to comment.