Skip to content

Commit 1900b19

Browse files
Customise summary list key width for file review component
1 parent 3b3f834 commit 1900b19

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.review-file-summary-list {
2+
.govuk-summary-list__key {
3+
width: 20%;
4+
}
5+
}

app/components/question/file_review_component/view.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<%= t('forms.review_file.show.check_file') %>
77
</h2>
88

9-
<%= govuk_summary_list do |summary_list|
9+
<%= govuk_summary_list(html_attributes: { class: 'review-file-summary-list' }) do |summary_list|
1010
summary_list.with_row do |row|
1111
row.with_key { t('forms.review_file.show.your_file') }
1212
row.with_value { question.original_filename }

app/frontend/entrypoints/application.scss

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ $govuk-global-styles: true;
44
@import "pkg:govuk-frontend";
55
@import "pkg:dfe-autocomplete/src/dfe-autocomplete";
66
@import "../../components/form_header_component/";
7+
@import "../../components/question/file_review_component/";
78
@import "../styles/app-panel";

0 commit comments

Comments
 (0)