Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(NcCheckboxRadioSwitch): improve rendering and prevent unecessary elements #5001

Merged
merged 1 commit into from
Jan 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/components/NcCheckboxRadioSwitch/NcCheckboxContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,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 @@ -52,7 +53,7 @@
</slot>
</span>

<span :class="['checkbox-content__text', textClass]">
<span v-if="$slots.default" :class="['checkbox-content__text', textClass]">
raimund-schluessler marked this conversation as resolved.
Show resolved Hide resolved
<!-- @slot The checkbox/radio label -->
<slot />
</span>
Expand Down
Loading