Skip to content

Commit

Permalink
248 Fix accessibility issues on eval criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
cpreisinger committed Nov 19, 2024
1 parent 56a4023 commit e9aeea6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@

<div class="<%= disabledOptionLabel ? 'display-none' : 'display-flex' %> flex-align-center flex-justify margin-top-2 criteria-option-label-row"
data-evaluation-criteria-target="optionLabelRow">
<%= label_tag criteria_field_id(f, "option_labels", is_template) ++ "_#{index}", index, class: "font-sans-lg text-bold text-base-light" %>
<%= label_tag criteria_field_id(f, "option_labels", is_template) ++ "_#{index}", index, class: "font-sans-lg text-bold text-base margin-right-2" %>
<%= f.text_field "option_labels",
id: criteria_field_id(f, "option_labels", is_template) ++ "_#{index}",
Expand Down
4 changes: 4 additions & 0 deletions spec/system/evaluation_form_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@
check_criteria_accordion_expanded(0, false)
expect(page).to(be_axe_clean)

# Open all criterion accordion then check accessibility
toggle_all_criteria_accordions
expect(page).to(be_axe_clean)

save_form

# Click through confirmation page
Expand Down

0 comments on commit e9aeea6

Please sign in to comment.