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)", "queued": "{{title}} (Queued)",
"game_has_no_executable": "Game has no executable selected", "game_has_no_executable": "Game has no executable selected",
"sign_in": "Sign in", "sign_in": "Sign in",
"friends": "Friends" "friends": "Friends",
"aria_view_profile": "View profile"
}, },
"header": { "header": {
"search": "Search games", "search": "Search games",

View file

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

View file

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

View file

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