Skip to content

Commit

Permalink
fix accessibility for home page
Browse files Browse the repository at this point in the history
  • Loading branch information
tlgimenes committed Feb 27, 2024
1 parent 723d94d commit 2354be5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/footer/FooterItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function FooterItems(
{sections.map((section) => (
<li>
<div class="collapse collapse-arrow ">
<input type="checkbox" class="min-h-[0]" />
<input id={section.label} type="checkbox" class="min-h-[0]" />
<label
htmlFor={section.label}
class="collapse-title min-h-[0] !p-0 flex gap-2"
Expand Down
10 changes: 8 additions & 2 deletions components/footer/RegionSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@ export default function RegionSelector(
{content?.currency?.length > 0 && (
<>
<label for="currency" class="sr-only">Currency</label>
<select class="select select-bordered select-sm h-10">
<select
id="currency"
class="select select-bordered select-sm h-10"
>
{content.currency.map((crr) => <option>{crr.label}</option>)}
</select>
</>
)}
{content?.language?.length > 0 && (
<>
<label for="language" class="sr-only">Language</label>
<select class="select select-bordered select-sm h-10">
<select
id="language"
class="select select-bordered select-sm h-10"
>
{content.language.map((lng) => <option>{lng.label}</option>)}
</select>
</>
Expand Down
2 changes: 1 addition & 1 deletion components/header/Drawers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Aside = (
<span class="font-medium text-2xl">{title}</span>
</h1>
{onClose && (
<Button class="btn btn-ghost" onClick={onClose}>
<Button aria-label="X" class="btn btn-ghost" onClick={onClose}>
<Icon id="XMark" size={24} strokeWidth={2} />
</Button>
)}
Expand Down

1 comment on commit 2354be5

@deno-deploy
Copy link
Contributor

@deno-deploy deno-deploy bot commented on 2354be5 Feb 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to deploy:

REQUEST_TIMED_OUT

Please sign in to comment.