From 2a6346cb690db8057e7f546085d42eeb01697bca Mon Sep 17 00:00:00 2001 From: cj-do-gta-sander Date: Thu, 24 Oct 2024 11:50:01 -0300 Subject: [PATCH] feat: add tooltip and screen reader support to sidebar resize button --- src/locales/en/translation.json | 3 ++- src/locales/pt-BR/translation.json | 3 ++- src/renderer/src/components/sidebar/sidebar.tsx | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 830061df..d26a351d 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -26,7 +26,8 @@ "game_has_no_executable": "Game has no executable selected", "sign_in": "Sign in", "friends": "Friends", - "aria_view_profile": "View profile" + "aria_view_profile": "View profile", + "resize_sidebar": "Resize sidebar" }, "header": { "search": "Search games", diff --git a/src/locales/pt-BR/translation.json b/src/locales/pt-BR/translation.json index fd848745..b9df36b1 100644 --- a/src/locales/pt-BR/translation.json +++ b/src/locales/pt-BR/translation.json @@ -26,7 +26,8 @@ "game_has_no_executable": "Jogo não possui executável selecionado", "sign_in": "Login", "friends": "Amigos", - "aria_view_profile": "Ver perfil" + "aria_view_profile": "Ver perfil", + "resize_sidebar": "Redimensionar barra lateral" }, "header": { "search": "Buscar jogos", diff --git a/src/renderer/src/components/sidebar/sidebar.tsx b/src/renderer/src/components/sidebar/sidebar.tsx index a782e101..49935e96 100644 --- a/src/renderer/src/components/sidebar/sidebar.tsx +++ b/src/renderer/src/components/sidebar/sidebar.tsx @@ -267,6 +267,7 @@ export function Sidebar() { className={styles.handle} onMouseDown={handleMouseDown} onKeyDown={handleKeyDown} + title={t("resize_sidebar")} /> );