Skip to content

Commit

Permalink
fix(Tabs): handle icon margin in RTL mode (#2233)
Browse files Browse the repository at this point in the history
  • Loading branch information
malik-jouda authored Sep 23, 2024
1 parent 803c20a commit ea05414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/components/content/examples/TabsExampleIconSlot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const items = [{
<template>
<UTabs :items="items" class="w-full">
<template #icon="{ item, selected }">
<UIcon :name="item.icon" class="w-4 h-4 flex-shrink-0 mr-2" :class="[selected && 'text-primary-500 dark:text-primary-400']" />
<UIcon :name="item.icon" class="w-4 h-4 flex-shrink-0 me-2" :class="[selected && 'text-primary-500 dark:text-primary-400']" />
</template>
</UTabs>
</template>
2 changes: 1 addition & 1 deletion src/runtime/ui.config/navigation/tabs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
font: 'font-medium',
rounded: 'rounded-md',
shadow: '',
icon: 'w-4 h-4 flex-shrink-0 mr-2'
icon: 'w-4 h-4 flex-shrink-0 me-2'
}
}
}

0 comments on commit ea05414

Please sign in to comment.