Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,19 @@ export const Sidebar: React.FC = () => {
<Logo aria-label="Open Gitify" />
</button>

<div
<button
className={`flex justify-around self-stretch items-center my-1 py-1 px-2 text-xs font-extrabold cursor-pointer ${
notificationsCount > 0 ? 'text-green-500' : 'text-white'
}`}
onClick={onOpenGitHubNotifications}
aria-label={`${notificationsCount} Unread Notifications`}
title={`${notificationsCount} Unread Notifications`}
>
<BellIcon size={12} />
<BellIcon
size={12}
aria-label={`${notificationsCount} Unread Notifications`}
/>
{notificationsCount > 0 && notificationsCount}
</div>
</button>
</div>

<div className="py-4 px-3">
Expand Down
18 changes: 10 additions & 8 deletions src/components/__snapshots__/Sidebar.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ exports[`components/Sidebar.tsx should render itself & its children (logged in)
</g>
</svg>
</button>
<div
aria-label="4 Unread Notifications"
<button
className="flex justify-around self-stretch items-center my-1 py-1 px-2 text-xs font-extrabold cursor-pointer text-green-500"
onClick={[Function]}
title="4 Unread Notifications"
>
<svg
aria-hidden="true"
aria-hidden="false"
aria-label="4 Unread Notifications"
className="octicon octicon-bell"
fill="currentColor"
focusable="false"
Expand All @@ -87,7 +88,7 @@ exports[`components/Sidebar.tsx should render itself & its children (logged in)
/>
</svg>
4
</div>
</button>
</div>
<div
className="py-4 px-3"
Expand Down Expand Up @@ -187,13 +188,14 @@ exports[`components/Sidebar.tsx should render itself & its children (logged out)
</g>
</svg>
</button>
<div
aria-label="4 Unread Notifications"
<button
className="flex justify-around self-stretch items-center my-1 py-1 px-2 text-xs font-extrabold cursor-pointer text-green-500"
onClick={[Function]}
title="4 Unread Notifications"
>
<svg
aria-hidden="true"
aria-hidden="false"
aria-label="4 Unread Notifications"
className="octicon octicon-bell"
fill="currentColor"
focusable="false"
Expand All @@ -215,7 +217,7 @@ exports[`components/Sidebar.tsx should render itself & its children (logged out)
/>
</svg>
4
</div>
</button>
</div>
<div
className="py-4 px-3"
Expand Down