Skip to content

Commit 1cdf514

Browse files
authored
se abre en nueva pestaña (#162)
Fix: #159 Añadidos dos avisos para sr (screen reader) de `se abre en nueva pestaña`
1 parent 328ea20 commit 1cdf514

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/components/home/SectionCallForProposals.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
import { texts } from '../../i18n/home'
3+
import { menuTexts } from '../../i18n/menu'
34
import SectionTitle from '../SectionTitle.astro'
45
import Button from '../Button.astro'
56
@@ -9,6 +10,7 @@ interface Props {
910
1011
const { lang } = Astro.props
1112
const t = texts[lang as keyof typeof texts]
13+
const menuT = menuTexts[lang as keyof typeof menuTexts]
1214
---
1315

1416
<div class="flex flex-col items-center gap-6">
@@ -28,6 +30,7 @@ const t = texts[lang as keyof typeof texts]
2830
href="https://pretalx.com/pycones-2026/cfp"
2931
target="_blank"
3032
rel="noopener noreferrer"
33+
aria-label={`${t['cfp.button']} ${menuT.new_tab}`}
3134
>
3235
{t['cfp.button']}
3336
</Button>

src/components/home/sponsors/SponsorsGroup.astro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import type { ISponsor } from '../../../types/sponsors'
33
import { texts } from '../../../i18n/home'
4+
import { menuTexts } from '../../../i18n/menu'
45
56
interface Props {
67
lang: string
@@ -12,6 +13,7 @@ interface Props {
1213
1314
const { title, sponsors, lang, tierColor, size } = Astro.props
1415
const t = texts[lang as keyof typeof texts]
16+
const menuT = menuTexts[lang as keyof typeof menuTexts]
1517
---
1618

1719
{
@@ -28,6 +30,7 @@ const t = texts[lang as keyof typeof texts]
2830
href={sponsor.website}
2931
target="_blank"
3032
rel="noopener noreferrer"
33+
aria-label={`${t['sponsors.altlogo'].replace('{name}', sponsor.name)} ${menuT.new_tab}`}
3134
class="group relative flex items-center justify-center rounded-xl bg-white/[0.03] border border-white/[0.06] backdrop-blur-sm p-5 transition-all duration-300 hover:bg-white/[0.08] hover:border-white/[0.15] hover:scale-[1.03] hover:shadow-lg hover:shadow-black/20"
3235
>
3336
<img

0 commit comments

Comments
 (0)