Skip to content

Commit

Permalink
fix(Stepper): handle RTL mode (#2844)
Browse files Browse the repository at this point in the history
  • Loading branch information
Malik-Jouda authored Dec 6, 2024
1 parent 16e0339 commit 198d04d
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 133 deletions.
14 changes: 7 additions & 7 deletions src/theme/stepper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export default (options: Required<ModuleOptions>) => ({
},
vertical: {
header: 'flex-col gap-4',
item: 'flex text-left',
separator: 'left-[calc(50%-1px)] -bottom-[10px] w-0.5'
item: 'flex text-start',
separator: 'start-[calc(50%-1px)] -bottom-[10px] w-0.5'
}
},

Expand Down Expand Up @@ -84,23 +84,23 @@ export default (options: Required<ModuleOptions>) => ({
compoundVariants: [{
orientation: 'horizontal',
size: 'xs',
class: { separator: 'left-[calc(50%+16px)] right-[calc(-50%+16px)]' }
class: { separator: 'start-[calc(50%+16px)] end-[calc(-50%+16px)]' }
}, {
orientation: 'horizontal',
size: 'sm',
class: { separator: 'left-[calc(50%+20px)] right-[calc(-50%+20px)]' }
class: { separator: 'start-[calc(50%+20px)] end-[calc(-50%+20px)]' }
}, {
orientation: 'horizontal',
size: 'md',
class: { separator: 'left-[calc(50%+28px)] right-[calc(-50%+28px)]' }
class: { separator: 'start-[calc(50%+28px)] end-[calc(-50%+28px)]' }
}, {
orientation: 'horizontal',
size: 'lg',
class: { separator: 'left-[calc(50%+32px)] right-[calc(-50%+32px)]' }
class: { separator: 'start-[calc(50%+32px)] end-[calc(-50%+32px)]' }
}, {
orientation: 'horizontal',
size: 'xl',
class: { separator: 'left-[calc(50%+36px)] right-[calc(-50%+36px)]' }
class: { separator: 'start-[calc(50%+36px)] end-[calc(-50%+36px)]' }
}, {
orientation: 'vertical',
size: 'xs',
Expand Down
Loading

0 comments on commit 198d04d

Please sign in to comment.