Skip to content

Commit 1ba8a55

Browse files
J-MichalekJakub
andauthored
fix(Carousel): add aria-current attribute to active dot (#4447)
Co-authored-by: Jakub <jakub.michalek@freelo.io>
1 parent 63730d6 commit 1ba8a55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/runtime/components/Carousel.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ defineExpose({
339339
:aria-label="t('carousel.goto', { slide: index + 1 })"
340340
:class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
341341
:data-state="selectedIndex === index ? 'active' : undefined"
342+
:aria-current="selectedIndex === index ? true : undefined"
342343
@click="scrollTo(index)"
343344
/>
344345
</template>

0 commit comments

Comments
 (0)