Skip to content

Commit

Permalink
chore: fix a11y issues for RGAA audit iroco-co/audits-frago#3
Browse files Browse the repository at this point in the history
  • Loading branch information
bamthomas committed Nov 28, 2023
1 parent 6b1ce67 commit a94b019
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 36 deletions.
1 change: 1 addition & 0 deletions src/lib/Chart.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
preserveAspectRatio="xMaxYMin meet"
viewBox="0 0 800 400"
height={size}
role="img"
width={(5 * size) / 3}
>
<title>Subscription Chart</title>
Expand Down
1 change: 1 addition & 0 deletions src/lib/Disconnect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
height="189"
viewBox="0 0 189 189"
fill="none"
role="img"
xmlns="http://www.w3.org/2000/svg"
>
<title>Disconnect</title>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Energy.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
export let size: number;
export let size: string;
export let title: string;
</script>

<span class="energy illustration">
<svg viewBox="0 0 134.87 232.95" height={size}>
<svg viewBox="0 0 134.87 232.95" height={size} role="img">
<title>Energy</title>
<rect
fill="#00d692"
Expand Down
6 changes: 3 additions & 3 deletions src/lib/Footer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="footer">
<div class="footer__contact">
<div class="footer__contact__container">
<h2>{$_("footer.socialmedia")}</h2>
<h1>{$_("footer.socialmedia")}</h1>
<div>
<a href="/newsletter">{$_("footer.newsletter")}</a>
</div>
Expand Down Expand Up @@ -64,7 +64,7 @@
</div>
</div>
<div class="footer__other">
<h2>{$_("footer.menu.title")}</h2>
<h1>{$_("footer.menu.title")}</h1>
<ul class="no-bullet">
<li>
<a href="https://jobs.makesense.org/projects/iroco-364/"
Expand Down Expand Up @@ -97,7 +97,7 @@
justify-content: center;
gap: 3em;
h2 {
h1 {
color: colors.$darkBeige;
font-size: 120%;
}
Expand Down
6 changes: 3 additions & 3 deletions src/lib/GreenHost.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
export let size: number;
export let title: string = null;
export let size: string;
export let title: string | null = null;
</script>

<span class="green-host illustration">
<svg viewBox="0 0 146.13 229.94" height={size}>
<svg viewBox="0 0 146.13 229.94" height={size} role="img">
<title>Green Host</title>
<rect
stroke-miterlimit="10"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Host.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
export let size = 312;
export let size = "312px";
</script>

<span class="host">
<svg width="147" viewBox="0 0 147 312" height={size} fill="none">
<svg width="147" viewBox="0 0 147 312" height={size} fill="none" role="img">
<title>Server</title>
<g clip-path="url(#clip0_4021_44990)">
<path
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Mail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</script>

<div class="mail illustration {orientation}">
<svg viewBox="0 0 58.96 85.92" height={size}>
<svg viewBox="0 0 58.96 85.92" height={size} role="img">
<title>Mail</title>
<rect
x="1.95"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Plant.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
export let size: number;
export let size: string;
export let title: string;
</script>

<span class="plant illustration">
<svg viewBox="0 0 134.87 232.95" height={size}>
<svg viewBox="0 0 134.87 232.95" height={size} role="img">
<title>Plant</title>
<path
d="M0,130.94H64.72a0,0,0,0,1,0,0v64.72a0,0,0,0,1,0,0h0A64.72,64.72,0,0,1,0,130.94v0A0,0,0,0,1,0,130.94Z"
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Privacy.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
export let size: number;
export let size: string;
export let title: string;
</script>

<span class="privacy illustration">
<svg viewBox="0 0 146.13 229.94" height={size}>
<svg viewBox="0 0 146.13 229.94" height={size} role="img">
<title>Privacy</title>
<g>
<polyline
Expand Down
1 change: 1 addition & 0 deletions src/lib/Security.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
height={size}
viewBox="0 0 149 151"
fill="none"
role="img"
xmlns="http://www.w3.org/2000/svg"
>
<title>Security</title>
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Server.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<script lang="ts">
export let size: number;
export let size: string;
export let title: string;
</script>

<span class="server illustration">
<svg viewBox="0 0 145.25 167.72" height={size}>
<svg viewBox="0 0 145.25 167.72" height={size} role="img">
<title>Server</title>
<line
x1="72.29"
Expand Down
1 change: 1 addition & 0 deletions src/lib/UserExperience.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
height="202"
viewBox="0 0 103 202"
fill="none"
role="img"
xmlns="http://www.w3.org/2000/svg"
>
<title>User Experience</title>
Expand Down
1 change: 1 addition & 0 deletions src/lib/Zen.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
height="106"
viewBox="0 0 211 106"
fill="none"
role="img"
xmlns="http://www.w3.org/2000/svg"
>
<title>Zen</title>
Expand Down
44 changes: 25 additions & 19 deletions src/routes/about/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -30,32 +30,32 @@
<div class="about__commitments__sections">
<article class="about__commitments__sections__transparency">
<Host size="100px" />
<h3>{$_("about.commitments.sections.transparency.title")}</h3>
<h2>{$_("about.commitments.sections.transparency.title")}</h2>
<p>{$_("about.commitments.sections.transparency.p")}</p>
</article>
<article class="about__commitments__sections__hosting">
<Plant size="100px" />
<h3>{$_("about.commitments.sections.hosting.title")}</h3>
<h2>{$_("about.commitments.sections.hosting.title")}</h2>
<p>{$_("about.commitments.sections.hosting.p")}</p>
</article>
<article class="about__commitments__sections__opensource">
<Energy size="100px" />
<h3>{$_("about.commitments.sections.opensource.title")}</h3>
<h2>{$_("about.commitments.sections.opensource.title")}</h2>
<p>{$_("about.commitments.sections.opensource.p")}</p>
</article>
<article class="about__commitments__sections__data">
<Privacy size="100px" />
<h3>{$_("about.commitments.sections.data.title")}</h3>
<h2>{$_("about.commitments.sections.data.title")}</h2>
<p>{$_("about.commitments.sections.data.p")}</p>
</article>
<article class="about__commitments__sections__ecodesign">
<GreenHost size="100px" />
<h3>{$_("about.commitments.sections.ecodesign.title")}</h3>
<h2>{$_("about.commitments.sections.ecodesign.title")}</h2>
<p>{$_("about.commitments.sections.ecodesign.p")}</p>
</article>
<article class="about__commitments__sections__sovereign">
<Server size="100px" />
<h3>{$_("about.commitments.sections.sovereign.title")}</h3>
<h2>{$_("about.commitments.sections.sovereign.title")}</h2>
<p>{$_("about.commitments.sections.sovereign.p")}</p>
</article>
</div>
Expand All @@ -73,23 +73,23 @@
<div class="about__ecosystem__grid__item vertical">
<div class="about__ecosystem__grid__item__img">
<a href="https://boavizta.org"
><img src="/images/partners/boavizta.png" alt="Boavizta" /></a
><img src="/images/partners/boavizta.png" alt="Boavizta Logo" /></a
>
</div>
<p>{$_("about.ecosystem.boavizta")}</p>
</div>
<div class="about__ecosystem__grid__item">
<div class="about__ecosystem__grid__item__img">
<a href="https://alliancegreenit.org/"
><img src="/images/partners/agit.png" alt="Agit" /></a
><img src="/images/partners/agit.png" alt="Agit Logo" /></a
>
</div>
<p>{$_("about.ecosystem.agit")}</p>
</div>
<div class="about__ecosystem__grid__item">
<div class="about__ecosystem__grid__item__img">
<a href="https://www.bpifrance.fr/"
><img src="/images/partners/bpi.svg" alt="BPI France" /></a
><img src="/images/partners/bpi.svg" alt="BPI France Logo" /></a
>
</div>
<p>{$_("about.ecosystem.bpi-france")}</p>
Expand All @@ -99,7 +99,7 @@
<a href="https://shiftyourjob.org/"
><img
src="data:image/svg+xml;base64,PHN2ZyBpZD0iQ2FscXVlXzEiIGRhdGEtbmFtZT0iQ2FscXVlIDEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgdmlld0JveD0iMCAwIDE4NCA0MCI+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sMSwxLDEuOSwzLDMsMCwwLDEtLjUsMS42LDMuODEsMy44MSwwLDAsMS0xLjQsMS4xQTIuMjksMi4yOSwwLDAsMSwxODIuNCwyMC41Wm0tMy42LDEuOWExLDEsMCwwLDAsLjQtLjcuNTUuNTUsMCwwLDAtLjMtLjUsMS40MiwxLjQyLDAsMCwwLS42LS4ySDE3NmwtLjQsMS43aDIuM0ExLjIyLDEuMjIsMCwwLDAsMTc4LjgsMjIuNFptLTItNS40LS4zLDEuNmgxLjlxMS4yLDAsMS4yLS45YS41NS41NSwwLDAsMC0uMy0uNSwxLjQ1LDEuNDUsMCwwLDAtLjctLjJaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNMjQuNCwxMS4xQTEyLjA4LDEyLjA4LDAsMSwxLDExLDMxLjJaIi8+PHBhdGggY2xhc3M9ImNscy0zIiBkPSJNMjkuOSw5LjIsMTYuNCwyOS4zYy02LjItNC4xLTguMi0xMi00LjUtMTcuNVMyMy43LDUuMSwyOS45LDkuMloiLz48L3N2Zz4K"
alt="Shift your Job"
alt="Shift your Job Logo"
/></a
>
</div>
Expand All @@ -108,7 +108,7 @@
<div class="about__ecosystem__grid__item">
<div class="about__ecosystem__grid__item__img">
<a href="https://www.eolas.fr/"
><img src="/images/partners/eolas.png" alt="Eolas" /></a
><img src="/images/partners/eolas.png" alt="Eolas Logo" /></a
>
</div>
<p>{$_("about.ecosystem.eolas")}</p>
Expand All @@ -127,23 +127,23 @@
<p>{$_("about.roadmap.p")}</p>
<div class="about__roadmap__sections">
<article class="about__roadmap__sections__servers">
<h3>{$_("about.roadmap.ul.servers.title")}</h3>
<h4>{$_("about.roadmap.ul.servers.date")}</h4>
<h2>{$_("about.roadmap.ul.servers.title")}</h2>
<h3>{$_("about.roadmap.ul.servers.date")}</h3>
<p>{$_("about.roadmap.ul.servers.details")}</p>
</article>
<article class="about__roadmap__sections__client">
<h3>{$_("about.roadmap.ul.client.title")}</h3>
<h4>{$_("about.roadmap.ul.client.date")}</h4>
<h2>{$_("about.roadmap.ul.client.title")}</h2>
<h3>{$_("about.roadmap.ul.client.date")}</h3>
<p>{$_("about.roadmap.ul.client.details")}</p>
</article>
<article class="about__roadmap__sections__company">
<h3>{$_("about.roadmap.ul.company.title")}</h3>
<h4>{$_("about.roadmap.ul.company.date")}</h4>
<h2>{$_("about.roadmap.ul.company.title")}</h2>
<h3>{$_("about.roadmap.ul.company.date")}</h3>
<p>{$_("about.roadmap.ul.company.details")}</p>
</article>
<article class="about__roadmap__sections__webmail">
<h3>{$_("about.roadmap.ul.webmail.title")}</h3>
<h4>{$_("about.roadmap.ul.webmail.date")}</h4>
<h2>{$_("about.roadmap.ul.webmail.title")}</h2>
<h3>{$_("about.roadmap.ul.webmail.date")}</h3>
<p>{$_("about.roadmap.ul.webmail.details")}</p>
</article>
</div>
Expand Down Expand Up @@ -172,6 +172,12 @@
&__commitments,
&__roadmap {
h2 {
font-size: 1.1em;
}
h3 {
font-size: 1em;
}
display: flex;
flex-direction: column;
text-align: center;
Expand Down

0 comments on commit a94b019

Please sign in to comment.