From d3b4f8f7739509e7e4278432253f55d52831aabb Mon Sep 17 00:00:00 2001
From: pbardy2000 <146740183+pbardy2000@users.noreply.github.com>
Date: Fri, 29 Nov 2024 14:58:38 +0000
Subject: [PATCH] feat(CB2-14451): update multi option and radios
---
.../govuk-form-group-radio.component.html | 15 +++++++
.../__tests__/adr-section.component.spec.ts | 43 +++++++++++++++++++
.../adr-section-edit.component.spec.ts | 1 +
...pipe.spec.ts => multi-option.pipe.spec.ts} | 5 ++-
.../default-null-or-empty.pipe.ts | 13 ------
.../pipes/multi-option/multi-option.pipe.ts | 3 +-
6 files changed, 65 insertions(+), 15 deletions(-)
rename src/app/pipes/multi-option/__tests__/{mult-option.pipe.spec.ts => multi-option.pipe.spec.ts} (87%)
delete mode 100644 src/app/pipes/multi-option/default-null-or-empty.pipe.ts
diff --git a/src/app/forms/components/govuk-form-group-radio/govuk-form-group-radio.component.html b/src/app/forms/components/govuk-form-group-radio/govuk-form-group-radio.component.html
index f1b663a5fa..3be6ab5eb1 100644
--- a/src/app/forms/components/govuk-form-group-radio/govuk-form-group-radio.component.html
+++ b/src/app/forms/components/govuk-form-group-radio/govuk-form-group-radio.component.html
@@ -10,6 +10,18 @@
+
+
+ {{ controlHint }}
+
+
+
+
+ Error:
+ {{ (control?.errors | keyvalue)?.[0]?.value }}
+
+
+
[attr.aria-labelledby]="labelId"
[attr.data-testid]="id"
[class.govuk-radios__input--error]="hasError"
+ [(ngModel)]="value"
+ (ngModelChange)="onChange($event)"
+ (blur)="onTouched()"
/>