From b1550d58adfeb09977619ad3ff7e776782a89603 Mon Sep 17 00:00:00 2001 From: Malik-Jouda <48517781+Malik-Jouda@users.noreply.github.com> Date: Tue, 26 Nov 2024 15:45:03 +0200 Subject: [PATCH] fix(Table): handle `loading` animation in RTL mode (#2771) --- src/theme/table.ts | 4 ++-- .../__snapshots__/Table-vue.spec.ts.snap | 20 +++++++++---------- .../__snapshots__/Table.spec.ts.snap | 20 +++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/theme/table.ts b/src/theme/table.ts index 6d5208d9..dea2ad41 100644 --- a/src/theme/table.ts +++ b/src/theme/table.ts @@ -56,13 +56,13 @@ export default (options: Required) => ({ loading: true, loadingAnimation: 'carousel', class: { - thead: 'after:animate-[carousel_2s_ease-in-out_infinite]' + thead: 'after:animate-[carousel_2s_ease-in-out_infinite] rtl:after:animate-[carousel-rtl_2s_ease-in-out_infinite]' } }, { loading: true, loadingAnimation: 'carousel-inverse', class: { - thead: 'after:animate-[carousel-inverse_2s_ease-in-out_infinite]' + thead: 'after:animate-[carousel-inverse_2s_ease-in-out_infinite] rtl:after:animate-[carousel-inverse-rtl_2s_ease-in-out_infinite]' } }, { loading: true, diff --git a/test/components/__snapshots__/Table-vue.spec.ts.snap b/test/components/__snapshots__/Table-vue.spec.ts.snap index 150a1878..08821f83 100644 --- a/test/components/__snapshots__/Table-vue.spec.ts.snap +++ b/test/components/__snapshots__/Table-vue.spec.ts.snap @@ -624,7 +624,7 @@ exports[`Table > renders with loading animation carousel correctly 1`] = ` "
- + @@ -677,7 +677,7 @@ exports[`Table > renders with loading animation carousel-inverse correctly 1`] = "
Id Amount
- + @@ -836,7 +836,7 @@ exports[`Table > renders with loading color error correctly 1`] = ` "
Id Amount
- + @@ -889,7 +889,7 @@ exports[`Table > renders with loading color info correctly 1`] = ` "
Id Amount
- + @@ -942,7 +942,7 @@ exports[`Table > renders with loading color neutral correctly 1`] = ` "
Id Amount
- + @@ -995,7 +995,7 @@ exports[`Table > renders with loading color primary correctly 1`] = ` "
Id Amount
- + @@ -1048,7 +1048,7 @@ exports[`Table > renders with loading color secondary correctly 1`] = ` "
Id Amount
- + @@ -1101,7 +1101,7 @@ exports[`Table > renders with loading color success correctly 1`] = ` "
Id Amount
- + @@ -1154,7 +1154,7 @@ exports[`Table > renders with loading color warning correctly 1`] = ` "
Id Amount
- + @@ -1207,7 +1207,7 @@ exports[`Table > renders with loading correctly 1`] = ` "
Id Amount
- + diff --git a/test/components/__snapshots__/Table.spec.ts.snap b/test/components/__snapshots__/Table.spec.ts.snap index 9809b842..0a4d2d0e 100644 --- a/test/components/__snapshots__/Table.spec.ts.snap +++ b/test/components/__snapshots__/Table.spec.ts.snap @@ -624,7 +624,7 @@ exports[`Table > renders with loading animation carousel correctly 1`] = ` "
Id Amount
- + @@ -677,7 +677,7 @@ exports[`Table > renders with loading animation carousel-inverse correctly 1`] = "
Id Amount
- + @@ -836,7 +836,7 @@ exports[`Table > renders with loading color error correctly 1`] = ` "
Id Amount
- + @@ -889,7 +889,7 @@ exports[`Table > renders with loading color info correctly 1`] = ` "
Id Amount
- + @@ -942,7 +942,7 @@ exports[`Table > renders with loading color neutral correctly 1`] = ` "
Id Amount
- + @@ -995,7 +995,7 @@ exports[`Table > renders with loading color primary correctly 1`] = ` "
Id Amount
- + @@ -1048,7 +1048,7 @@ exports[`Table > renders with loading color secondary correctly 1`] = ` "
Id Amount
- + @@ -1101,7 +1101,7 @@ exports[`Table > renders with loading color success correctly 1`] = ` "
Id Amount
- + @@ -1154,7 +1154,7 @@ exports[`Table > renders with loading color warning correctly 1`] = ` "
Id Amount
- + @@ -1207,7 +1207,7 @@ exports[`Table > renders with loading correctly 1`] = ` "
Id Amount
- +
Id Amount