Skip to content

🀯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

πŸ’„ style(notification): restore inbox modal dividers in dark mode (#19403)

Rdmclin29ee312539a7b
diff --git a/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx b/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx
index 36bb6f2a957..f5f8d44e27e 100644
--- a/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx
+++ b/src/features/HomeSidebar/Header/components/InboxModal/Content.tsx
@@ -25,8 +25,11 @@ import type { NotificationListHandle } from './useNotificationList';
import { PAGE_SIZE, useNotificationList } from './useNotificationList';
const styles = createStaticStyles(({ css }) => ({
+ // colorFillSecondary rather than colorBorderSecondary: see the note in
+ // ../InboxModal/index.tsx β€” the border token collapses into the modal's own
+ // surface in dark mode, which erased the separator between rows.
item: css`
- border-block-end: 1px solid ${cssVar.colorBorderSecondary};
+ border-block-end: 1px solid ${cssVar.colorFillSecondary};
&:hover {
background: ${cssVar.colorFillSecondary};
diff --git a/src/features/HomeSidebar/Header/components/InboxModal/index.tsx b/src/features/HomeSidebar/Header/components/InboxModal/index.tsx
index 223615be49d..32a61a24892 100644
--- a/src/features/HomeSidebar/Header/components/InboxModal/index.tsx
+++ b/src/features/HomeSidebar/Header/components/InboxModal/index.tsx
@@ -67,11 +67,18 @@ const styles = createStaticStyles(({ css }) => ({
overscroll-behavior: contain;
flex: 1;
`,
+ // Dividers inside this modal use colorFillSecondary, not colorBorderSecondary.
+ // In the dark palette colorBorderSecondary and colorBgElevated are the same
+ // step of the neutral scale, so every border drawn on the modal's own surface
+ // resolves to the surface colour and disappears β€” the panel reads as one
+ // undifferentiated block. colorFillSecondary is alpha-based, so it lands on
+ // #f0f0f0 over the light surface (identical to what the border token gave)
+ // and stays visible over the dark one.
header: css`
flex: none;
gap: 0;
padding: 0;
- border-block-end: 1px solid ${cssVar.colorBorderSecondary};
+ border-block-end: 1px solid ${cssVar.colorFillSecondary};
`,
headerMain: css`
min-width: 0;
@@ -101,7 +108,7 @@ const styles = createStaticStyles(({ css }) => ({
box-sizing: border-box;
width: clamp(160px, 22vw, 220px);
padding: 8px;
- border-inline-end: 1px solid ${cssVar.colorBorderSecondary};
+ border-inline-end: 1px solid ${cssVar.colorFillSecondary};
`,
}));