chore: remove redundancy in "View Profile" and "Game" button for screen readers

This commit is contained in:
cj-do-gta-sander 2024-10-24 10:49:01 -03:00
parent 3ff15d2d61
commit 79763b6072
4 changed files with 6 additions and 2 deletions

View file

@ -25,7 +25,8 @@
"queued": "{{title}} (Queued)",
"game_has_no_executable": "Game has no executable selected",
"sign_in": "Sign in",
"friends": "Friends"
"friends": "Friends",
"aria_view_profile": "View profile"
},
"header": {
"search": "Search games",

View file

@ -25,7 +25,8 @@
"queued": "{{title}} (Na fila)",
"game_has_no_executable": "Jogo não possui executável selecionado",
"sign_in": "Login",
"friends": "Amigos"
"friends": "Amigos",
"aria_view_profile": "Ver perfil"
},
"header": {
"search": "Buscar jogos",

View file

@ -89,6 +89,7 @@ export function SidebarProfile() {
type="button"
className={styles.profileButton}
onClick={handleProfileClick}
aria-label={t("aria_view_profile")}
>
<div className={styles.profileButtonContent}>
<Avatar

View file

@ -219,6 +219,7 @@ export function Sidebar() {
type="button"
className={styles.menuItemButton}
onClick={(event) => handleSidebarGameClick(event, game)}
aria-label={game.title}
>
{game.iconUrl ? (
<img