Skip to content

Commit

Permalink
fix(NcCheckboxRadioSwitch): improve rendering and prevent unecessary …
Browse files Browse the repository at this point in the history
…elements

Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Jan 2, 2024
1 parent b1bfee1 commit 9511e3f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
'checkbox-content__icon--checked': isChecked,
[iconClass]: true
}"
:aria-hidden="true">
:aria-hidden="true"
inert>
<!-- @slot The checkbox/radio icon, you can use it for adding an icon to the button variant
@binding {bool} checked The input checked state
@binding {bool} loading The loading state
Expand All @@ -51,7 +52,7 @@
</slot>
</span>

<span :class="['checkbox-content__text', textClass]">
<span v-if="$slots.default" :class="['checkbox-content__text', textClass]">
<!-- @slot The checkbox/radio label -->
<slot />
</span>
Expand Down

0 comments on commit 9511e3f

Please sign in to comment.