Skip to content

Commit b7e4ed5

Browse files
committed
Cleanup: WCAG issues
1 parent f70bb05 commit b7e4ed5

File tree

16 files changed

+43
-53
lines changed

16 files changed

+43
-53
lines changed

src/components/Footer.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const gitVersion = __GIT_VERSION__;
1212
{
1313
links.footer.map((section) => (
1414
<div class="md:w-auto mb-8 md:mb-0 text-start">
15-
<h3 class="font-bold text-lg mb-4">{section.name}</h3>
15+
<h2 class="font-bold text-lg mb-4">{section.name}</h2>
1616
{section.items ? (
1717
<ul class="space-y-2">
1818
{section.items.map((item) => (
@@ -51,7 +51,7 @@ const gitVersion = __GIT_VERSION__;
5151
class="flex flex-col lg:flex-row self-center gap-2 lg:gap-12 justify-end"
5252
>
5353
<div
54-
class="flex flex-col text-white/40 w-full lg:w-2/3 p-5 items-center text-center"
54+
class="flex flex-col text-white/60 w-full lg:w-2/3 p-5 items-center text-center"
5555
>
5656
<p>
5757
Excited about our mission? Want to collaborate or contribute? Let's
@@ -63,7 +63,7 @@ const gitVersion = __GIT_VERSION__;
6363
</p>
6464
</div>
6565
<div
66-
class="flex text-white/40 w-full lg:w-1/3 justify-center text-start mb-4 lg:mb-0"
66+
class="flex text-white/60 w-full lg:w-1/3 justify-center text-start mb-4 lg:mb-0"
6767
>
6868
<div>
6969
<EPSLogo width="90" height="90" class="w-[90px] mr-4 h-auto" />
@@ -111,7 +111,7 @@ const gitVersion = __GIT_VERSION__;
111111
</div>
112112
</div>
113113

114-
<p class="mb-16 text-white/10 text-center">
114+
<p class="mb-16 text-text-inverted text-center">
115115
version: {gitVersion} @ {buildTimestamp}
116116
</p>
117117
</div>

src/components/Header.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import HeaderActions from "@components/header/header-actions.astro";
44
import HeaderLogo from "@components/header/header-logo.astro";
55
import Search from "@components/Search.astro";
66
7-
import links from "../data/links.json";
7+
import links from "@data/links.json";
88
---
99

1010
<section
1111
id="navbar"
1212
class="fixed top-0 z-50 transition-transform duration-300 transform-gpu w-full"
1313
>
1414
<div
15-
class="container max-w-[1150px] mx-auto px-6 py-2 mt-1 lg:p-2 lg:mt-6 px-2 flex items-center justify-between relative z-40 bg-white/80 rounded-full backdrop-blur-md shadow-lg"
15+
class="container max-w-[1150px] mx-auto px-6 py-2 mt-1 lg:p-2 lg:mt-6 flex items-center justify-between relative z-40 bg-white/80 rounded-full backdrop-blur-md shadow-lg"
1616
>
1717
<input
1818
type="checkbox"

src/components/Modal.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const { id = 'modal', open = false, closeOnOutsideClick = false } = Astro.props;
1919
clear
2020
icon="close"
2121
iconSize="fa-xl"
22+
aria-label="Close button"
2223
data-close-modal
2324
class="w-[3em] h-[3em] absolute top-4 right-4 text-primary hover:text-black "
2425
/>

src/components/Search.astro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import Modal from "@components/Modal.astro";
1010
<SearchComponent
1111
id="search"
1212
className="pagefind-ui"
13+
aria-label="Toggle navigation menu"
1314
uiOptions={{
1415
showImages: false,
1516
translations: {

src/components/SponsorLogo.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const logo = sponsorLogos[sponsor.id];
2828
{
2929
website ? (
3030

31-
<a href={website}>
31+
<a href={website} aria-label={`Link to ${title}`}
32+
>
3233
<Image
3334
src={logo}
3435
alt={`${title} Logo`}

src/components/header/header-actions.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@ const IS_LIVE = false;
3131
<kbd>Ctrl</kbd><kbd>K</kbd>
3232
</kbd>
3333
</button>
34-
<Button custom url="/tickets" icon="ticket" class="button-link font-bold text-lg px-4 py-3 rounded-full inline-flex items-center justify-center leading-4 transition-colors duration-200 not-prose border hover:text-black w-full max-w-36 max-xl:hidden bg-button text-text-inverted hover:bg-button-hover border-transparent">Tickets</Button>
34+
<Button custom url="/tickets" icon="ticket" class="button-link font-bold text-lg px-4 py-3 rounded-full inline-flex items-center justify-center leading-4 transition-colors duration-200 not-prose border hover:text-white w-full max-w-36 max-xl:hidden bg-button text-text-inverted hover:bg-button-hover border-transparent">Tickets</Button>
3535
{IS_LIVE && <Button url="/live">Live</Button>}
3636
</>
3737
: null
3838
}
3939

40-
41-
<label for="nav_toggle" class="flex xl:hidden">
40+
<label for="nav_toggle" class="flex xl:hidden" aria-label="Toggle navigation menu">
4241
<span class="w-[3em] h-[3em] font-bold text-lg px-4 py-4 rounded-full inline-flex items-center justify-center leading-4 transition-colors duration-200 not-prose border hover:text-black bg-primary text-white hover:bg-primary-hover border-transparent">
4342
{mobile ? <Icon name="close" size="fa-xl" /> : <Icon name="bars" size="fa-xl" />}
4443
</span>

src/components/header/header-button.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const { href, variant = "standard" } = Astro.props;
1414
{
1515
"bg-text": variant === "menu",
1616
"bg-primary": variant === "standard",
17-
"text-text-inverted": variant !== "live",
17+
"text-text": variant !== "live",
1818
"bg-red": variant === "live",
1919
},
2020
]}

src/components/sections/hero/hero.astro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const action2 = "/sponsorship/sponsor/";
8989
src="/logo.png"
9090
height="188"
9191
width="188"
92-
alt="EuroPython logo"
92+
alt="2025 EuroPython logo"
9393
/>
9494
</div>
9595
<h1
@@ -137,7 +137,7 @@ const action2 = "/sponsorship/sponsor/";
137137
<div class="px-5 md:px-10 md:m-10">
138138
<Image
139139
src={heroImage}
140-
alt="EuroPython 2025 Hero Image"
140+
alt="EuroPython 2025 Conference"
141141
class="w-full max-w-5xl lg:max-w-full h-auto lg:h-full rounded-2xl shadow-xl"
142142
/>
143143
</div>
@@ -153,8 +153,8 @@ const action2 = "/sponsorship/sponsor/";
153153
<Icon name="calendar-days" size="fa-3x" />
154154
</div>
155155
<div>
156-
<h3 class="text-2xl md:text-5xl font-bold">7</h3>
157-
<p class="text-xl md:text-3xl">Days</p>
156+
<h2 class="text-2xl md:text-5xl font-bold">7</h2>
157+
<h3 class="text-xl md:text-3xl">Days</h3>
158158
</div>
159159
</div>
160160
<div class="p-4 bg-gray-100 rounded-lg flex items-center">
@@ -164,8 +164,8 @@ const action2 = "/sponsorship/sponsor/";
164164
<Icon name="users" size="fa-3x" />
165165
</div>
166166
<div>
167-
<h3 class="text-2xl md:text-5xl font-bold">1.3k+</h3>
168-
<p class="text-xl md:text-3xl">Attendees</p>
167+
<h2 class="text-2xl md:text-5xl font-bold">1.3k+</h2>
168+
<h3 class="text-xl md:text-3xl">Attendees</h3>
169169
</div>
170170
</div>
171171
<div class="p-4 bg-gray-100 rounded-lg flex items-center">
@@ -175,8 +175,8 @@ const action2 = "/sponsorship/sponsor/";
175175
<Icon name="comments" size="fa-3x" />
176176
</div>
177177
<div>
178-
<h3 class="text-2xl md:text-5xl font-bold">180+</h3>
179-
<p class="text-xl md:text-3xl">Speakers</p>
178+
<h2 class="text-2xl md:text-5xl font-bold">180+</h2>
179+
<h3 class="text-xl md:text-3xl">Speakers</h3>
180180
</div>
181181
</div>
182182
</div>

src/components/sections/keynoters/keynoter.astro

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,19 +62,19 @@ const isSpeaker = entries.some((entry) => entry.id === slug);
6262
) : (
6363
<>
6464
{isSpeaker ? (
65-
<p class="text-[#17223A] font-bold">
65+
<h2 class="text-[#17223A] font-bold">
6666
<a
6767
href={`/speaker/${slug}`}
68-
class="text-[#17223A] font-bold hover:underline"
68+
class="text-2xl text-[#17223A] font-bold hover:underline"
6969
>
7070
{name}
7171
</a>
72-
</p>
72+
</h2>
7373
) : (
74-
<p class="text-[#17223A] font-bold">{name}</p>
74+
<h2 class="text-2xl text-[#17223A] font-bold">{name}</h2>
7575
)}
7676
{tagline && (
77-
<p class="text-secondary-hover text-lg italic">{tagline}</p>
77+
<h3 class="text-secondary-hover text-lg italic">{tagline}</h3>
7878
)}
7979
</>
8080
)

src/components/sections/keynoters/keynoters.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,7 @@ const placeholders = Math.max(0, 5 - keynoters.length);
4747

4848
<div class="flex items-center flex-col pt-6">
4949
<div class="text-center">
50-
<h3 class="font-bold text-3xl m-4 ">
51-
<span class="text-body-light inline-block mr-2">#</span>
52-
See other sessions
53-
</h3>
50+
<Headline as="h4" title="See other sessions" />
5451
<Button url="/sessions">See sessions preview</Button>
5552
</div>
5653
</div>

0 commit comments

Comments
 (0)