We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62bc7b2 commit 2ee1c5aCopy full SHA for 2ee1c5a
src/runtime/components/Carousel.vue
@@ -336,6 +336,7 @@ defineExpose({
336
<button
337
:aria-label="t('carousel.goto', { slide: index + 1 })"
338
:class="ui.dot({ class: props.ui?.dot, active: selectedIndex === index })"
339
+ :data-state="selectedIndex === index ? 'active' : undefined"
340
@click="scrollTo(index)"
341
/>
342
</template>
src/theme/carousel.ts
@@ -30,7 +30,7 @@ export default (options: Required<ModuleOptions>) => ({
30
},
31
active: {
32
true: {
33
- dot: 'bg-inverted'
+ dot: 'data-[state=active]:bg-inverted'
34
}
35
36
0 commit comments