From 563ae3f90a785e7eee11b09ce58320b40e9f60cd Mon Sep 17 00:00:00 2001 From: Martin I <33766476+martinIvovIv@users.noreply.github.com> Date: Fri, 6 Feb 2026 18:42:10 +0100 Subject: [PATCH] fix; improvement proposal for the leaderboard buttons (#3107) ## Description: Changes the leaderboard buttons to look more like other buttons per suggestion by @FloPinguin ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced *** Screenshots: Before change: image After change: image After change hover: image Mobile: image ##Discord username: martoi *** Signed-off-by: MartinIvovIv --- src/client/graphics/layers/GameLeftSidebar.ts | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/client/graphics/layers/GameLeftSidebar.ts b/src/client/graphics/layers/GameLeftSidebar.ts index 9b3aa2f65..81a42421c 100644 --- a/src/client/graphics/layers/GameLeftSidebar.ts +++ b/src/client/graphics/layers/GameLeftSidebar.ts @@ -112,7 +112,17 @@ export class GameLeftSidebar extends LitElement implements Layer { this.isLeaderboardShow || this.isTeamLeaderboardShow ? "mb-2" : "" }`} > -
+
{ + if (e.key === "Enter" || e.key === " " || e.code === "Space") { + this.toggleLeaderboard(); + } + }} + > { + if ( + e.key === "Enter" || + e.key === " " || + e.code === "Space" + ) { + this.toggleTeamLeaderboard(); + } + }} >