Skip to content

Commit

Permalink
fix(accessibility): Use article/div instead of ul/li
Browse files Browse the repository at this point in the history
Signed-off-by: 迷渡 <[email protected]>
  • Loading branch information
justjavac committed May 11, 2022
1 parent 14f03b3 commit 3ce58dc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ function Work() {
The WinterCG is currently working on various efforts to improve web
platform APIs across runtimes:
</p>
<ul class="mt-8 space-y-6">
<div class="mt-8 space-y-6">
{work.map((item) => (
<li>
<article>
<h2 class="text-xl font-medium">{item.name}</h2>
<p class="text-lg">{item.description}</p>
<p class="flex gap-4">
Expand All @@ -64,9 +64,9 @@ function Work() {
</a>
)}
</p>
</li>
</article>
))}
</ul>
</div>
<Footer />
</Layout>
);
Expand Down Expand Up @@ -369,7 +369,7 @@ const PARTNER_LOGOS = [
function Logos() {
return (
<div>
<ul class="mt-16 flex justify-evenly">
<div class="mt-16 flex justify-evenly">
{RUNTIME_LOGOS.map(({ src, href, name }) => (
<a href={href}>
<img
Expand All @@ -380,11 +380,11 @@ function Logos() {
/>
</a>
))}
</ul>
</div>
<p class="mt-16 text-center">
The work of the WinterCG is supported by:
</p>
<ul class="mt-8 flex justify-between sm:justify-evenly items-center h-16">
<div class="mt-8 flex justify-between sm:justify-evenly items-center h-16">
{PARTNER_LOGOS.map(({ src, href, name, restrict }) => (
<a href={href}>
<img
Expand All @@ -397,7 +397,7 @@ function Logos() {
/>
</a>
))}
</ul>
</div>
</div>
);
}
Expand Down

0 comments on commit 3ce58dc

Please sign in to comment.