Skip to content

Commit

Permalink
AP-5434: Fix minor visual issues
Browse files Browse the repository at this point in the history
Address issues found in testing
  • Loading branch information
agoldstone93 committed Nov 7, 2024
1 parent f17f934 commit 242ab3f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 31 deletions.
7 changes: 6 additions & 1 deletion app/assets/stylesheets/check-your-answers.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
border-top: 3px solid #000000;
border-bottom: 1px solid #000000;
font-weight: bold;

@include govuk-media-query($from: tablet) {
display: table-row;
}
Expand All @@ -70,6 +71,10 @@
}
}

.print-no-break > .govuk-body {
.print-no-break>.govuk-body {
word-wrap: break-word;
}

.govuk-summary-card {
break-inside: avoid;
}
28 changes: 10 additions & 18 deletions app/views/shared/_application_ref.html.erb
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
<dl class="govuk-summary-list govuk-summary-list--no-border">
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
<%= t(".apply_ref") %>
</dt>
<dd class="govuk-summary-list__value">
<%= legal_aid_application.application_ref %>
</dd>
</div>
<div class="govuk-summary-list__row">
<dt class="govuk-summary-list__key">
<%= t(".ccms_ref_html") %>
</dt>
<dd class="govuk-summary-list__value">
<%= legal_aid_application.case_ccms_reference %>
</dd>
</div>
</dl>
<%= govuk_summary_list(classes: "govuk-summary-list--no-border") do |summary_list| %>
<%= summary_list.with_row do |row| %>
<%= row.with_key(text: t(".apply_ref")) %>
<%= row.with_value(text: legal_aid_application.application_ref) %>
<% end %>
<%= summary_list.with_row do |row| %>
<%= row.with_key(text: t(".ccms_ref_html")) %>
<%= row.with_value(text: legal_aid_application.case_ccms_reference) %>
<% end %>
<% end %>
18 changes: 6 additions & 12 deletions app/views/shared/check_answers/_vehicles.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,16 @@

<% if @legal_aid_application.vehicles.any? %>
<% @legal_aid_application.vehicles.each_with_index do |vehicle, index| %>
<% action_link = govuk_link_to(t("generic.change"),
providers_legal_aid_application_means_vehicle_detail_path(@legal_aid_application, vehicle),
visually_hidden_suffix: t(".providers.vehicle_index", sequence: index + 1),
id: "app-check-your-answers__vehicle__#{index}_change_link") %>
<%= govuk_summary_list(
card: { title: t(".providers.vehicle_index", sequence: index + 1) },
actions: !read_only,
card: { title: t(".providers.vehicle_index", sequence: index + 1),
actions: read_only ? [] : [action_link] },
html_attributes: { id: "vehicle-questions__#{index}" },
) do |summary_list| %>

<%= summary_list.with_row(html_attributes: { id: "app-check-your-answers__vehicle__#{index}_change_link" }) do |row| %>
<%= row.with_key(text: t(".providers.vehicle_index", sequence: index + 1), classes: "govuk-!-width-one-half govuk-heading-m") %>
<%= row.with_value(text: nil) %>
<%= row.with_action(
text: t("generic.change"),
href: providers_legal_aid_application_means_vehicle_detail_path(@legal_aid_application, vehicle),
visually_hidden_text: t(".providers.vehicle_index", sequence: index + 1),
) %>
<% end %>

<% if @legal_aid_application.applicant.has_partner_with_no_contrary_interest? %>
<%= summary_list.with_row(html_attributes: { id: "app-check-your-answers__vehicles_owner" }) do |row| %>
<%= row.with_key(text: t(".#{journey_type}.owner"), classes: "govuk-!-width-one-half") %>
Expand Down

0 comments on commit 242ab3f

Please sign in to comment.