Steps: aria-current added to active item

pull/5011/head
tugcekucukoglu 2023-12-28 11:05:37 +03:00
parent b9fd3ddc65
commit 8d6a0b7150
1 changed files with 1 additions and 0 deletions

View File

@ -6,6 +6,7 @@
v-if="visible(item)" v-if="visible(item)"
:class="[cx('menuitem', { item, index }), item.class]" :class="[cx('menuitem', { item, index }), item.class]"
:style="item.style" :style="item.style"
:aria-current="isActive(index) ? 'step' : undefined"
@click="onItemClick($event, item, index)" @click="onItemClick($event, item, index)"
@keydown="onItemKeydown($event, item, index)" @keydown="onItemKeydown($event, item, index)"
v-bind="getPTOptions('menuitem', item, index)" v-bind="getPTOptions('menuitem', item, index)"