Skip to content

Commit 454608a

Browse files
Fix RTL arrow direction and horizontal overflow
- Flip navigational arrows (→) in RTL using rtl:-scale-x-100 - Flip SVG chevron in hero grid items for RTL - Add overflow-x-hidden to body to prevent horizontal scroll in RTL Ref: #2195
1 parent 50c1661 commit 454608a

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

themes/le-2025/layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
{{ partial "head.html" . }}
55
</head>
6-
<body>
6+
<body class="overflow-x-hidden">
77
{{ partial "header.html" . }}
88
<main>
99
{{ block "main" . }}{{ end }}

themes/le-2025/layouts/partials/components/accordion-item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
{{ end }}
1818
{{ if and .link_url .link_text }}
1919
<a href="{{ .link_url }}" class="text-link hover:text-link-hover active:text-link-active underline">
20-
{{ .link_text }}
20+
{{ .link_text }} <span class="inline-block rtl:-scale-x-100"></span>
2121
</a>
2222
{{ end }}
2323
</div>

themes/le-2025/layouts/partials/components/blog-grid-item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ <h3 class="text-xl font-bold mt-2 mb-3 text-gray-900">{{ .page.Title }}</h3>
1414
{{ end }}
1515
</div>
1616
<div class="absolute bottom-6 start-6">
17-
<span class="font-medium text-link group-hover:text-link-hover">{{ i18n "read_more" }}{{ i18n "common_read_more_arrow" }}</span>
17+
<span class="font-medium text-link group-hover:text-link-hover">{{ i18n "read_more" }}<span class="inline-block rtl:-scale-x-100">{{ i18n "common_read_more_arrow" }}</span></span>
1818
</div>
1919
</a>

themes/le-2025/layouts/partials/components/hero-grid-item.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ <h3 class="text-xl font-semibold mb-4">{{ $title }}</h3>
1212
{{ else }}
1313
<a href="{{ $link_url }}" class="font-medium inline-flex items-center">
1414
{{ $link_text }}
15-
<svg class="w-4 h-4 ms-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
15+
<svg class="w-4 h-4 ms-2 rtl:-scale-x-100" fill="none" stroke="currentColor" viewBox="0 0 24 24">
1616
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path>
1717
</svg>
1818
</a>

themes/le-2025/layouts/partials/sections/home-hero.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2 class="text-base font-bold mb-2">{{ T "home_hero_annual_report_title" }}</h2
3939
</div>
4040
<div class="md:col-span-4 md:text-end">
4141
<a href="https://www.abetterinternet.org/annual-reports" class="text-sm btn btn-primary">
42-
{{ T "home_hero_annual_report_button" }}
42+
{{ T "home_hero_annual_report_button" }} <span class="inline-block rtl:-scale-x-100"></span>
4343
</a>
4444
</div>
4545
</div>

0 commit comments

Comments
 (0)