Skip to content

Commit

Permalink
OOC-4382: fixed question titles bold text
Browse files Browse the repository at this point in the history
  • Loading branch information
masuk-kazi98 committed Jun 5, 2024
1 parent 4487362 commit 8b746a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class DatePartsField extends FormComponent {
// @ts-ignore - eslint does not report this as an error, only tsc
getViewModel(formData: FormData, errors: FormSubmissionErrors) {
const viewModel = super.getViewModel(formData, errors);

viewModel.label!.classes = "govuk-fieldset__legend--s";
// Use the component collection to generate the subitems
const componentViewModels = this.children
.getViewModel(formData, errors)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class SelectionControlField extends ListFormComponent {
const { name, items } = this;
const options: any = this.options;
const viewModel: ViewModel = super.getViewModel(formData, errors);
viewModel.label!.classes = "govuk-fieldset__legend--s";

viewModel.fieldset = {
legend: viewModel.label,
Expand Down

0 comments on commit 8b746a6

Please sign in to comment.