Skip to content

Commit ea05414

Browse files
authoredSep 23, 2024··
fix(Tabs): handle icon margin in RTL mode (#2233)

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎docs/components/content/examples/TabsExampleIconSlot.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const items = [{
1717
<template>
1818
<UTabs :items="items" class="w-full">
1919
<template #icon="{ item, selected }">
20-
<UIcon :name="item.icon" class="w-4 h-4 flex-shrink-0 mr-2" :class="[selected && 'text-primary-500 dark:text-primary-400']" />
20+
<UIcon :name="item.icon" class="w-4 h-4 flex-shrink-0 me-2" :class="[selected && 'text-primary-500 dark:text-primary-400']" />
2121
</template>
2222
</UTabs>
2323
</template>

‎src/runtime/ui.config/navigation/tabs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default {
2828
font: 'font-medium',
2929
rounded: 'rounded-md',
3030
shadow: '',
31-
icon: 'w-4 h-4 flex-shrink-0 mr-2'
31+
icon: 'w-4 h-4 flex-shrink-0 me-2'
3232
}
3333
}
3434
}

0 commit comments

Comments
 (0)
Please sign in to comment.