Skip to content

Commit 99669ac

Browse files
eran132claude
andcommitted
fix: restore anchor text content for Trans components
aria-label was overriding the accessible name used by E2E tests. Trans provides content at runtime, so anchors need placeholder text matching the i18n output instead of aria-label. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c831134 commit 99669ac

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/pages/about/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ const Privacy = () => {
7575
<Widget title={t('privacy')}>
7676
<p>
7777
<Trans i18nKey="aboutPage.privacyText">
78-
<a href={googlAnalyticsUrl} aria-label="Google Analytics"></a>
79-
<a href={googleAnaliticsPrivacyUrl} aria-label="Google Analytics Privacy"></a>
78+
<a href={googlAnalyticsUrl}>Google Analytics</a>
79+
<a href={googleAnaliticsPrivacyUrl}>קראו כאן</a>
8080
</Trans>
8181
</p>
8282
</Widget>
@@ -93,8 +93,8 @@ const License = () => {
9393
<Trans
9494
i18nKey="aboutPage.licenseInfo.text"
9595
values={{ licenseName: t('aboutPage.licenseInfo.licenseName') }}>
96-
<a href={licenseLink} aria-label="Creative Commons License"></a>
97-
<a href={licenseOrgLink} aria-label="Creative Commons"></a>
96+
<a href={licenseLink}>רישיון CC BY-SA</a>
97+
<a href={licenseOrgLink}>Creative Commons</a>
9898
</Trans>
9999
</p>
100100
</Widget>
@@ -186,9 +186,9 @@ const Contributors = () => {
186186
{t('aboutPage.contributorsText')}
187187
<br />
188188
<Trans i18nKey="aboutPage.contributorsReadMore">
189-
<a
190-
href="https://github.com/hasadna/open-bus-map-search/blob/main/CONTRIBUTING.md"
191-
aria-label="Contributing guide"></a>
189+
<a href="https://github.com/hasadna/open-bus-map-search/blob/main/CONTRIBUTING.md">
190+
קרא כאן
191+
</a>
192192
</Trans>
193193
</p>
194194
<ol className="contributions">

0 commit comments

Comments
 (0)