From 7686227cf72e92a33b858503ffac962a6f81dcaf Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Tue, 4 Jul 2023 21:25:32 +0200 Subject: [PATCH] fixup! Do not allow primary and use primary for checked state only Signed-off-by: Ferdinand Thiessen --- .../NcCheckboxRadioSwitch.vue | 58 ++++++++++++++----- 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue index a1923af774..7c4ee8c2c2 100644 --- a/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue +++ b/src/components/NcCheckboxRadioSwitch/NcCheckboxRadioSwitch.vue @@ -257,12 +257,14 @@ export default { ### Checkbox buttons Sometimes you need to toggle a state, using a button is not good as it does not show the current state for accessibility. -Therefor you can use a checkbox with the button styling: + +For that purpose you can use a checkbox with the button styling like the `NcButton` component, you can use the same types +except the `'primary'`, which will be used for the *checked* state of the button. ```vue