feat: add tooltip and screen reader support to back button in header

This commit is contained in:
cj-do-gta-sander 2024-10-24 10:58:00 -03:00
parent 79763b6072
commit b754b1e052
3 changed files with 5 additions and 2 deletions

View File

@ -36,7 +36,8 @@
"search_results": "Search results",
"settings": "Settings",
"version_available_install": "Version {{version}} available. Click here to restart and install.",
"version_available_download": "Version {{version}} available. Click here to download."
"version_available_download": "Version {{version}} available. Click here to download.",
"back": "Back"
},
"bottom_panel": {
"no_downloads_in_progress": "No downloads in progress",

View File

@ -36,7 +36,8 @@
"settings": "Ajustes",
"home": "Início",
"version_available_install": "Versão {{version}} disponível. Clique aqui para reiniciar e instalar.",
"version_available_download": "Versão {{version}} disponível. Clique aqui para fazer o download."
"version_available_download": "Versão {{version}} disponível. Clique aqui para fazer o download.",
"back": "Voltar"
},
"bottom_panel": {
"no_downloads_in_progress": "Sem downloads em andamento",

View File

@ -81,6 +81,7 @@ export function Header({ onSearch, onClear, search }: HeaderProps) {
})}
onClick={handleBackButtonClick}
disabled={location.key === "default"}
title={t("back")}
>
<ArrowLeftIcon />
</button>