feature: Added aria-disabled attribute

This commit is contained in:
Paul Valerie GOMA 2025-07-21 16:17:55 +02:00
parent 82759bdcae
commit 34427c40a2

View File

@ -12,7 +12,12 @@ const props = withDefaults(defineProps<IVAccordion>(), {
</script>
<template>
<AccordionPanel :id="props.id" :value="panelValue" :disabled="props.disabled" :class="['p-accordionpanel', {'disabled': props.disabled}]">
<AccordionPanel
:id="props.id"
:value="panelValue"
:disabled="props.disabled"
:aria-disabled="props.disabled"
:class="['p-accordionpanel', {'disabled': props.disabled}]">
<AccordionHeader class="p-accordionheader" role="heading" :aria-level="panelValue">
<slot name="header"></slot>
</AccordionHeader>