Skip to content

Commit 8b70808

Browse files
authored
feat: add RTL support to search page (#368)
1 parent 1eac591 commit 8b70808

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/pages/search.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ defineOgImageComponent('Default', {
776776

777777
<div class="search-box relative flex items-center">
778778
<span
779-
class="absolute left-4 text-fg-subtle font-mono text-base pointer-events-none transition-colors duration-200 group-focus-within:text-accent"
779+
class="absolute inset-is-4 text-fg-subtle font-mono text-base pointer-events-none transition-colors duration-200 group-focus-within:text-accent"
780780
aria-hidden="true"
781781
>
782782
/
@@ -790,17 +790,17 @@ defineOgImageComponent('Default', {
790790
:placeholder="$t('search.placeholder')"
791791
v-bind="noCorrect"
792792
autofocus
793-
class="w-full max-w-full bg-bg-subtle border border-border rounded-lg pl-8 pr-10 py-3 font-mono text-base text-fg placeholder:text-fg-subtle transition-colors duration-300 focus:border-accent focus-visible:outline-none appearance-none"
793+
class="w-full max-w-full bg-bg-subtle border border-border rounded-lg ps-8 pe-10 py-3 font-mono text-base text-fg placeholder:text-fg-subtle transition-colors duration-300 focus:border-accent focus-visible:outline-none appearance-none"
794794
@keydown="handleResultsKeydown"
795795
/>
796796
<button
797797
v-show="inputValue"
798798
type="button"
799-
class="absolute right-3 p-2 text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
799+
class="absolute inset-ie-3 p-2 text-fg-subtle hover:text-fg transition-colors duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fg/50 rounded"
800800
:aria-label="$t('search.clear')"
801801
@click="inputValue = ''"
802802
>
803-
<span class="i-carbon-close-large block w-3.5 h-3.5" aria-hidden="true" />
803+
<span class="i-carbon:close-large block w-3.5 h-3.5" aria-hidden="true" />
804804
</button>
805805
<!-- Hidden submit button for accessibility (form must have submit button per WCAG) -->
806806
<button type="submit" class="sr-only">{{ $t('search.button') }}</button>

0 commit comments

Comments
 (0)