Browse Source

Adjust class name to be more generic and reusable

pull/2545/head
Manny Dinssa 2 years ago
parent
commit
71a7f4703f
  1. 2
      app/components/bulk_upload_error_row_component.html.erb
  2. 2
      app/frontend/styles/application.scss

2
app/components/bulk_upload_error_row_component.html.erb

@ -56,7 +56,7 @@
<% row.with_cell(text: error.cell) %> <% row.with_cell(text: error.cell) %>
<% row.with_cell(text: question_for_field(error.field)) %> <% row.with_cell(text: question_for_field(error.field)) %>
<% if index == 0 %> <% if index == 0 %>
<% row.with_cell(text: error_message, rowspan: errors.size, html_attributes: { class: "govuk-!-font-weight-bold bulk-upload-error-message" }) %> <% row.with_cell(text: error_message, rowspan: errors.size, html_attributes: { class: "govuk-!-font-weight-bold grouped-multirow-cell" }) %>
<% end %> <% end %>
<% row.with_cell(text: error.field.humanize) %> <% row.with_cell(text: error.field.humanize) %>
<% end %> <% end %>

2
app/frontend/styles/application.scss

@ -92,6 +92,6 @@ $govuk-breakpoints: (
} }
.grouped-rows.last-row td, .grouped-rows.last-row td,
.grouped-rows .bulk-upload-error-message { .grouped-rows .grouped-multirow-cell {
border-bottom: 1px solid #b1b4b6; border-bottom: 1px solid #b1b4b6;
} }

Loading…
Cancel
Save