fix(homepage): add accessible names to footer language button and theme toggle buttons

This commit is contained in:
Moamal-2000
2025-05-10 12:45:13 +03:00
parent cd21860535
commit 78eefe9da1
5 changed files with 10 additions and 89 deletions

View File

@ -1,3 +1,4 @@
import { t } from "@lingui/macro";
import { useLingui } from "@lingui/react";
import { Translate } from "@phosphor-icons/react";
import { Button, Popover, PopoverContent, PopoverTrigger } from "@reactive-resume/ui";
@ -13,7 +14,7 @@ export const LocaleSwitch = () => {
return (
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
<Button size="icon" variant="ghost">
<Button size="icon" variant="ghost" aria-label={t`Change Language`}>
<Translate size={20} />
</Button>
</PopoverTrigger>