From 1fda6967b1002a7110a117d376d0d5f3793c7598 Mon Sep 17 00:00:00 2001 From: George Date: Wed, 1 Mar 2023 15:15:34 +0200 Subject: [PATCH] RED-6154, add ids to file upload input, radio detail groups and empty state button. --- .../empty-state/empty-state.component.html | 1 + .../empty-states/empty-state/empty-state.component.ts | 2 ++ src/lib/inputs/details-radio/details-radio-option.ts | 1 + .../inputs/details-radio/details-radio.component.html | 1 + .../inputs/details-radio/details-radio.component.ts | 4 ++++ src/lib/upload-file/upload-file.component.html | 10 +++++++++- 6 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/lib/empty-states/empty-state/empty-state.component.html b/src/lib/empty-states/empty-state/empty-state.component.html index 82397d5..ddce9a2 100644 --- a/src/lib/empty-states/empty-state/empty-state.component.html +++ b/src/lib/empty-states/empty-state/empty-state.component.html @@ -12,6 +12,7 @@
{ + id?: string; label: string; description: string; value: I; diff --git a/src/lib/inputs/details-radio/details-radio.component.html b/src/lib/inputs/details-radio/details-radio.component.html index 15d7914..a897e1f 100644 --- a/src/lib/inputs/details-radio/details-radio.component.html +++ b/src/lib/inputs/details-radio/details-radio.component.html @@ -1,5 +1,6 @@
extends FormFieldComponent) { + return (option.id ?? option.label.replace('.', '-')) + '-checkbox-details-input'; + } } diff --git a/src/lib/upload-file/upload-file.component.html b/src/lib/upload-file/upload-file.component.html index 31a4ab2..4dd42fb 100644 --- a/src/lib/upload-file/upload-file.component.html +++ b/src/lib/upload-file/upload-file.component.html @@ -12,5 +12,13 @@
- +