From 8884fb38eb68957cc1c8899f737ff474916653dd Mon Sep 17 00:00:00 2001 From: Karen Skauge Date: Tue, 10 Nov 2026 20:53:51 +0100 Subject: [PATCH 1/3] fix: make profile image controls keyboard accessible --- .../src/components/profile/ProfileHeader.tsx | 62 ++++++++++++------- 1 file changed, 39 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/profile/ProfileHeader.tsx b/frontend/src/components/profile/ProfileHeader.tsx index a4f4b09..85f08c4 100644 --- a/frontend/src/components/profile/ProfileHeader.tsx +++ b/frontend/src/components/profile/ProfileHeader.tsx @@ -1,4 +1,4 @@ -import type { ChangeEvent } from "react"; +import { useRef, type ChangeEvent } from "react"; type ProfileHeaderProps = { username: string; @@ -20,6 +20,8 @@ export default function ProfileHeader({ onCoverImageChange, onProfileImageChange, }: ProfileHeaderProps) { + const coverInputRef = useRef(null); + const profileInputRef = useRef(null); return ( <>
+ +
- +

{username}

From 0dd6583135858907c38399ffeaefa0cb23e407d6 Mon Sep 17 00:00:00 2001 From: Karen Skauge Date: Tue, 10 Nov 2026 21:04:47 +0100 Subject: [PATCH 2/3] style: refine the profile image edit button --- frontend/src/components/profile/ProfileHeader.tsx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/frontend/src/components/profile/ProfileHeader.tsx b/frontend/src/components/profile/ProfileHeader.tsx index 85f08c4..232d643 100644 --- a/frontend/src/components/profile/ProfileHeader.tsx +++ b/frontend/src/components/profile/ProfileHeader.tsx @@ -1,4 +1,5 @@ import { useRef, type ChangeEvent } from "react"; +import { Pencil } from "lucide-react"; type ProfileHeaderProps = { username: string; @@ -71,7 +72,7 @@ export default function ProfileHeader({ type="button" aria-label="Change profile image" onClick={() => profileInputRef.current?.click()} - className="profile-pic relative block h-44 w-44 shrink-0 cursor-pointer overflow-hidden rounded-full border-4 border-white bg-gray-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900 dark:border-[#171615] dark:focus-visible:outline-white" + className="profile-pic relative block h-44 w-44 shrink-0 cursor-pointer rounded-full border-4 border-white bg-gray-300 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-gray-900 dark:border-[#171615] dark:focus-visible:outline-white" > {isLoadingImages ? ( @@ -80,14 +81,14 @@ export default function ProfileHeader({ - - Change profile image + ) : ( - + Change profile image )} From fd9fb178a6860fff7fabb94932e605d09e93d9b1 Mon Sep 17 00:00:00 2001 From: Karen Skauge Date: Tue, 10 Nov 2026 21:11:55 +0100 Subject: [PATCH 3/3] fix: remove obsolete cover image label --- frontend/src/components/profile/ProfileHeader.tsx | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/frontend/src/components/profile/ProfileHeader.tsx b/frontend/src/components/profile/ProfileHeader.tsx index 232d643..e1b4483 100644 --- a/frontend/src/components/profile/ProfileHeader.tsx +++ b/frontend/src/components/profile/ProfileHeader.tsx @@ -43,13 +43,6 @@ export default function ProfileHeader({ ) )} - -