Skip to content

Commit 164fc2e

Browse files
committed
fix: notification text colors in dark mode
1 parent a270a20 commit 164fc2e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎apps/codebility/components/notifications/NotificationPanel.tsx‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ export function NotificationPanel({
7777
{/* Header */}
7878
<div className="flex items-center justify-between border-b border-gray-200 px-4 py-3 dark:border-gray-700">
7979
<div className="flex items-center gap-2">
80-
<Bell className="h-5 w-5" />
81-
<h3 className="font-semibold">Notifications</h3>
80+
<Bell className="h-5 w-5 text-gray-700 dark:text-gray-300" />
81+
<h3 className="font-semibold text-gray-900 dark:text-white">Notifications</h3>
8282
{unreadCount > 0 && (
8383
<span className="rounded-full bg-red-500 px-2 py-0.5 text-xs text-white">
8484
{unreadCount}
@@ -111,8 +111,8 @@ export function NotificationPanel({
111111
{/* Notifications List */}
112112
<ScrollArea className="h-[400px]">
113113
{notifications.length === 0 ? (
114-
<div className="flex flex-col items-center justify-center py-12 text-gray-500">
115-
<Bell className="mb-2 h-12 w-12 text-gray-300" />
114+
<div className="flex flex-col items-center justify-center py-12 text-gray-500 dark:text-gray-400">
115+
<Bell className="mb-2 h-12 w-12 text-gray-300 dark:text-gray-600" />
116116
<p>No notifications yet</p>
117117
</div>
118118
) : (
@@ -136,14 +136,14 @@ export function NotificationPanel({
136136
<div className="min-w-0 flex-1">
137137
<p className={cn(
138138
"text-sm font-medium",
139-
!notification.read && "text-gray-900 dark:text-white"
139+
!notification.read ? "text-gray-900 dark:text-white" : "text-gray-700 dark:text-gray-300"
140140
)}>
141141
{notification.title}
142142
</p>
143143
<p className="mt-0.5 text-sm text-gray-600 dark:text-gray-400">
144144
{notification.message}
145145
</p>
146-
<p className="mt-1 text-xs text-gray-500">
146+
<p className="mt-1 text-xs text-gray-500 dark:text-gray-500">
147147
{formatDistanceToNow(notification.createdAt, { addSuffix: true })}
148148
</p>
149149
</div>

0 commit comments

Comments
 (0)