fix(Progress): handle horizontal animation in RTL mode (#2723)

This commit is contained in:
Malik-Jouda
2024-11-22 00:07:59 +02:00
committed by GitHub
parent b140dbfe63
commit 0baa3a06d4
5 changed files with 93 additions and 44 deletions

View File

@@ -162,7 +162,7 @@ export default (options: Required<ModuleOptions>) => ({
orientation: 'horizontal',
animation: 'carousel',
class: {
indicator: 'data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite]'
indicator: 'data-[state=indeterminate]:animate-[carousel_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-rtl_2s_ease-in-out_infinite]'
}
}, {
orientation: 'vertical',
@@ -174,7 +174,7 @@ export default (options: Required<ModuleOptions>) => ({
orientation: 'horizontal',
animation: 'carousel-inverse',
class: {
indicator: 'data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite]'
indicator: 'data-[state=indeterminate]:animate-[carousel-inverse_2s_ease-in-out_infinite] data-[state=indeterminate]:rtl:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]'
}
}, {
orientation: 'vertical',