Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: list item title should use heading color

Abdullah Attaac9be8360a10
diff --git a/apps/web/src/components/list-item/index.tsx b/apps/web/src/components/list-item/index.tsx
index bf5d769eb..945861c04 100644
--- a/apps/web/src/components/list-item/index.tsx
+++ b/apps/web/src/components/list-item/index.tsx
@@ -31,8 +31,8 @@ import { alpha } from "@theme-ui/color";
type ListItemProps = {
colors?: {
+ heading: SchemeColors;
accent: SchemeColors;
- paragraph: SchemeColors;
background: SchemeColors;
};
isFocused?: boolean;
@@ -53,9 +53,9 @@ type ListItemProps = {
function ListItem(props: ListItemProps) {
const {
- colors: { paragraph, background, accent } = {
+ colors: { heading, background, accent } = {
+ heading: "heading",
accent: "accent",
- paragraph: "paragraph",
background: "background"
},
isFocused,
@@ -172,7 +172,7 @@ function ListItem(props: ListItemProps) {
overflow: "hidden",
textOverflow: "ellipsis",
fontWeight: isCompact || isSimple ? "body" : "bold",
- color: paragraph,
+ color: heading,
display: "block"
}}
>
diff --git a/apps/web/src/components/note/index.tsx b/apps/web/src/components/note/index.tsx
index 58df57202..3c9253b3d 100644
--- a/apps/web/src/components/note/index.tsx
+++ b/apps/web/src/components/note/index.tsx
@@ -131,7 +131,7 @@ function Note(props: NoteProps) {
}}
colors={{
accent: primary,
- paragraph: note.color ? primary : "heading",
+ heading: note.color ? primary : "heading",
background: "background"
}}
menuItems={menuItems}