Skip to content

Commit 198d04d

Browse files
authoredDec 6, 2024··
fix(Stepper): handle RTL mode (#2844)
1 parent 16e0339 commit 198d04d

File tree

3 files changed

+133
-133
lines changed

3 files changed

+133
-133
lines changed
 

‎src/theme/stepper.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ export default (options: Required<ModuleOptions>) => ({
2626
},
2727
vertical: {
2828
header: 'flex-col gap-4',
29-
item: 'flex text-left',
30-
separator: 'left-[calc(50%-1px)] -bottom-[10px] w-0.5'
29+
item: 'flex text-start',
30+
separator: 'start-[calc(50%-1px)] -bottom-[10px] w-0.5'
3131
}
3232
},
3333

@@ -84,23 +84,23 @@ export default (options: Required<ModuleOptions>) => ({
8484
compoundVariants: [{
8585
orientation: 'horizontal',
8686
size: 'xs',
87-
class: { separator: 'left-[calc(50%+16px)] right-[calc(-50%+16px)]' }
87+
class: { separator: 'start-[calc(50%+16px)] end-[calc(-50%+16px)]' }
8888
}, {
8989
orientation: 'horizontal',
9090
size: 'sm',
91-
class: { separator: 'left-[calc(50%+20px)] right-[calc(-50%+20px)]' }
91+
class: { separator: 'start-[calc(50%+20px)] end-[calc(-50%+20px)]' }
9292
}, {
9393
orientation: 'horizontal',
9494
size: 'md',
95-
class: { separator: 'left-[calc(50%+28px)] right-[calc(-50%+28px)]' }
95+
class: { separator: 'start-[calc(50%+28px)] end-[calc(-50%+28px)]' }
9696
}, {
9797
orientation: 'horizontal',
9898
size: 'lg',
99-
class: { separator: 'left-[calc(50%+32px)] right-[calc(-50%+32px)]' }
99+
class: { separator: 'start-[calc(50%+32px)] end-[calc(-50%+32px)]' }
100100
}, {
101101
orientation: 'horizontal',
102102
size: 'xl',
103-
class: { separator: 'left-[calc(50%+36px)] right-[calc(-50%+36px)]' }
103+
class: { separator: 'start-[calc(50%+36px)] end-[calc(-50%+36px)]' }
104104
}, {
105105
orientation: 'vertical',
106106
size: 'xs',

‎test/components/__snapshots__/Stepper-vue.spec.ts.snap

+63-63
Large diffs are not rendered by default.

‎test/components/__snapshots__/Stepper.spec.ts.snap

+63-63
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.