Skip to content

Commit e824aa1

Browse files
authored
feat: add RTL support to PackageDownloadAnalytics (#338)
1 parent 23230fd commit e824aa1

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

app/components/PackageDownloadAnalytics.vue

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ const config = computed(() => {
619619
<div
620620
class="flex items-center gap-2 px-2.5 py-1.75 bg-bg-subtle border border-border rounded-md focus-within:(border-border-hover ring-2 ring-accent/30)"
621621
>
622-
<span class="i-carbon-calendar w-4 h-4 text-fg-subtle shrink-0" aria-hidden="true" />
622+
<span class="i-carbon:calendar w-4 h-4 text-fg-subtle shrink-0" aria-hidden="true" />
623623
<input
624624
id="startDate"
625625
v-model="startDate"
@@ -639,7 +639,7 @@ const config = computed(() => {
639639
<div
640640
class="flex items-center gap-2 px-2.5 py-1.75 bg-bg-subtle border border-border rounded-md focus-within:(border-border-hover ring-2 ring-accent/30)"
641641
>
642-
<span class="i-carbon-calendar w-4 h-4 text-fg-subtle shrink-0" aria-hidden="true" />
642+
<span class="i-carbon:calendar w-4 h-4 text-fg-subtle shrink-0" aria-hidden="true" />
643643
<input
644644
id="endDate"
645645
v-model="endDate"
@@ -666,80 +666,80 @@ const config = computed(() => {
666666
}
667667
"
668668
>
669-
<span class="i-carbon-reset w-5 h-5 inline-block" aria-hidden="true" />
669+
<span class="i-carbon:reset w-5 h-5 inline-block" aria-hidden="true" />
670670
</button>
671671
</div>
672672
</div>
673673

674674
<ClientOnly v-if="inModal && chartData.dataset">
675675
<VueUiXy :dataset="chartData.dataset" :config="config">
676676
<template #menuIcon="{ isOpen }">
677-
<span v-if="isOpen" class="i-carbon-close w-6 h-6" aria-hidden="true" />
678-
<span v-else class="i-carbon-overflow-menu-vertical w-6 h-6" aria-hidden="true" />
677+
<span v-if="isOpen" class="i-carbon:close w-6 h-6" aria-hidden="true" />
678+
<span v-else class="i-carbon:overflow-menu-vertical w-6 h-6" aria-hidden="true" />
679679
</template>
680680
<template #optionCsv>
681681
<span
682-
class="i-carbon-csv w-6 h-6 text-fg-subtle"
682+
class="i-carbon:csv w-6 h-6 text-fg-subtle"
683683
style="pointer-events: none"
684684
aria-hidden="true"
685685
/>
686686
</template>
687687
<template #optionImg>
688688
<span
689-
class="i-carbon-png w-6 h-6 text-fg-subtle"
689+
class="i-carbon:png w-6 h-6 text-fg-subtle"
690690
style="pointer-events: none"
691691
aria-hidden="true"
692692
/>
693693
</template>
694694
<template #optionSvg>
695695
<span
696-
class="i-carbon-svg w-6 h-6 text-fg-subtle"
696+
class="i-carbon:svg w-6 h-6 text-fg-subtle"
697697
style="pointer-events: none"
698698
aria-hidden="true"
699699
/>
700700
</template>
701701

702702
<template #annotator-action-close>
703703
<span
704-
class="i-carbon-close w-6 h-6 text-fg-subtle"
704+
class="i-carbon:close w-6 h-6 text-fg-subtle"
705705
style="pointer-events: none"
706706
aria-hidden="true"
707707
/>
708708
</template>
709709
<template #annotator-action-color="{ color }">
710-
<span class="i-carbon-color-palette w-6 h-6" :style="{ color }" aria-hidden="true" />
710+
<span class="i-carbon:color-palette w-6 h-6" :style="{ color }" aria-hidden="true" />
711711
</template>
712712
<template #annotator-action-undo>
713713
<span
714-
class="i-carbon-undo w-6 h-6 text-fg-subtle"
714+
class="i-carbon:undo w-6 h-6 text-fg-subtle"
715715
style="pointer-events: none"
716716
aria-hidden="true"
717717
/>
718718
</template>
719719
<template #annotator-action-redo>
720720
<span
721-
class="i-carbon-redo w-6 h-6 text-fg-subtle"
721+
class="i-carbon:redo w-6 h-6 text-fg-subtle"
722722
style="pointer-events: none"
723723
aria-hidden="true"
724724
/>
725725
</template>
726726
<template #annotator-action-delete>
727727
<span
728-
class="i-carbon-trash-can w-6 h-6 text-fg-subtle"
728+
class="i-carbon:trash-can w-6 h-6 text-fg-subtle"
729729
style="pointer-events: none"
730730
aria-hidden="true"
731731
/>
732732
</template>
733733
<template #optionAnnotator="{ isAnnotator }">
734734
<span
735735
v-if="isAnnotator"
736-
class="i-carbon-edit-off w-6 h-6 text-fg-subtle"
736+
class="i-carbon:edit-off w-6 h-6 text-fg-subtle"
737737
style="pointer-events: none"
738738
aria-hidden="true"
739739
/>
740740
<span
741741
v-else
742-
class="i-carbon-edit w-6 h-6 text-fg-subtle"
742+
class="i-carbon:edit w-6 h-6 text-fg-subtle"
743743
style="pointer-events: none"
744744
aria-hidden="true"
745745
/>
@@ -762,7 +762,7 @@ const config = computed(() => {
762762
v-if="pending"
763763
role="status"
764764
aria-live="polite"
765-
class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-xs text-fg-subtle font-mono bg-bg/70 backdrop-blur px-3 py-2 rounded-md border border-border"
765+
class="absolute top-1/2 inset-is-1/2 -translate-x-1/2 -translate-y-1/2 text-xs text-fg-subtle font-mono bg-bg/70 backdrop-blur px-3 py-2 rounded-md border border-border"
766766
>
767767
{{ $t('package.downloads.loading') }}
768768
</div>

0 commit comments

Comments
 (0)