From 21ae8f65d62144800e4548c128f46733391e8a20 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Sat, 20 Apr 2024 01:54:10 +0200 Subject: [PATCH] fix(NcCheckboxRadioSwitch): Pass attrs to `input` if available If not button type, pass the attrs to the input element to allow setting aria tags like `aria-invalid` and `aria-errormessage` Signed-off-by: Ferdinand Thiessen --- .../NcCheckboxContent.vue | 4 +- .../NcCheckboxRadioSwitch.vue | 75 ++++++++++++------- .../NcCheckboxRadioSwitch/checkbox.spec.js | 52 +++++++++++++ 3 files changed, 104 insertions(+), 27 deletions(-) create mode 100644 tests/unit/components/NcCheckboxRadioSwitch/checkbox.spec.js diff --git a/src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue b/src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue index f9c1424de6..e37850c975 100644 --- a/src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue +++ b/src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue @@ -21,7 +21,7 @@ -->