Refactor #3965 - For TriStateCheckbox

This commit is contained in:
Tuğçe Küçükoğlu 2023-05-25 16:44:22 +03:00
parent 67e99ac4fc
commit 1cad891084
3 changed files with 4 additions and 4 deletions

View file

@ -16,7 +16,7 @@
v-bind="{ ...inputProps, ...ptm('hiddenInput') }"
/>
</div>
<span :class="cx('srOnlyAria')" aria-live="polite" v-bind="ptm('srOnlyAria')">{{ ariaValueLabel }}</span>
<span role="status" :class="cx('hiddenValueLabel')" :style="sx('hiddenAccessible', isUnstyled)" aria-live="polite" v-bind="ptm('hiddenValueLabel')" :data-p-hidden-accessible="true">{{ ariaValueLabel }}</span>
<div ref="box" :class="cx('checkbox')" v-bind="getPTOptions('checkbox')" :data-p-highlight="modelValue != null" :data-p-disabled="disabled" :data-p-focused="focused">
<slot v-if="modelValue === true" name="checkicon" :class="cx('checkIcon')">
<component :is="'CheckIcon'" :class="cx('checkIcon')" v-bind="ptm('checkIcon')" />