Skip to content

Commit f6711a9

Browse files
fix(profile): add visual cue to profile button (#247)
## **Description** This PR fixes the visibility issue of the profile button when the user’s avatar image is loading or fails to load. The bg-transparent class was removed, allowing the existing bg-gray-200 background to serve as a fallback. This ensures the profile button is always visible and clickable. ## **Related Issue** Fixes #203 ## **Screenshots/Screencasts** <img width="1077" height="44" alt="Screenshot 2025-10-19 210051" src="https://github.com/user-attachments/assets/05d3c7ee-383b-4154-bf7d-328e12ddfb12" /> https://github.com/user-attachments/assets/360cbed9-d3ae-420d-a457-7aefcd817154 <img width="1362" height="561" alt="Screenshot 2025-10-19 210233" src="https://github.com/user-attachments/assets/665c2adf-3ea3-4eb3-af87-08e692769561" /> <img width="1354" height="721" alt="Screenshot 2025-10-19 191008" src="https://github.com/user-attachments/assets/a110f192-ec69-4d75-95ac-e0a4ac453f6e" /> ## **Notes to Reviewer** > Notes to Reviewer > > No new npm packages were added. > > Only a minor class change (bg-transparent removed) in the profile button component. Co-authored-by: Olabode Lawal-Shittabey <[email protected]>
1 parent 7ea2fca commit f6711a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/islands/profile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export default function Profile({ isAuthed, userData, authUrl }) {
4949
<div className="relative">
5050
{/* Profile */}
5151
<button
52-
className={`${isDropdownOpen && "ring-4"} relative bg-gray-200 flex items-center justify-center size-10 hover:ring-4 ring-gray-200 overflow-hidden bg-transparent rounded-full transition-colors duration-700 cursor-pointer focus-visible:outline-none`}
52+
className={`${isDropdownOpen && "ring-4"} relative bg-gray-200 flex items-center justify-center size-10 hover:ring-4 ring-gray-200 overflow-hidden rounded-full transition-colors duration-700 cursor-pointer focus-visible:outline-none`}
5353
onClick={() => setIsDropdownOpen((prev) => !prev)}
5454
>
5555
{/* User Avatar */}

0 commit comments

Comments
 (0)