Skip to content

Commit 0a9225f

Browse files
authored
feat: add RTL support to ScrollToTop (#353)
1 parent d8dfbf2 commit 0a9225f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/components/ScrollToTop.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ onMounted(() => {
3636
<button
3737
v-if="isActive && supportsScrollStateQueries"
3838
type="button"
39-
class="scroll-to-top-css fixed bottom-4 right-4 z-50 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg md:hidden flex items-center justify-center text-fg-muted hover:text-fg transition-colors active:scale-95"
39+
class="scroll-to-top-css fixed bottom-4 inset-ie-4 z-50 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg md:hidden flex items-center justify-center text-fg-muted hover:text-fg transition-colors active:scale-95"
4040
:aria-label="$t('common.scroll_to_top')"
4141
@click="scrollToTop"
4242
>
43-
<span class="i-carbon-arrow-up w-5 h-5" aria-hidden="true" />
43+
<span class="i-carbon:arrow-up w-5 h-5" aria-hidden="true" />
4444
</button>
4545

4646
<!-- JS fallback for browsers without scroll-state support -->
@@ -56,11 +56,11 @@ onMounted(() => {
5656
<button
5757
v-if="isActive && isMounted && isVisible"
5858
type="button"
59-
class="fixed bottom-4 right-4 z-50 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg md:hidden flex items-center justify-center text-fg-muted hover:text-fg transition-colors active:scale-95"
59+
class="fixed bottom-4 inset-ie-4 z-50 w-12 h-12 bg-bg-elevated border border-border rounded-full shadow-lg md:hidden flex items-center justify-center text-fg-muted hover:text-fg transition-colors active:scale-95"
6060
:aria-label="$t('common.scroll_to_top')"
6161
@click="scrollToTop"
6262
>
63-
<span class="i-carbon-arrow-up w-5 h-5" aria-hidden="true" />
63+
<span class="i-carbon:arrow-up w-5 h-5" aria-hidden="true" />
6464
</button>
6565
</Transition>
6666
</template>

0 commit comments

Comments
 (0)