Skip to content

Commit 70dd4cb

Browse files
feat: remove override forcing primary color
1 parent a4856a8 commit 70dd4cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

typescript-sdk/apps/dojo/src/components/code-viewer/code-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function CodeViewer({ codeFiles }: { codeFiles: FeatureFile[] })
3131
value={file.name}
3232
className={cn(
3333
"border-0 shadow-none hover:bg-foreground/5 hover:text-gray-900 dark:hover:text-neutral-100 data-[state=active]:text-gray-900 dark:data-[state=active]:text-white",
34-
isInsideCpkFrame || true
34+
isInsideCpkFrame
3535
? "mix-from-cpk-docs-primary mix-to-white mix-25 data-[state=active]:bg-mix/15 data-[state=active]:text-cpk-docs-primary data-[state=active]:dark:text-mix"
3636
: "data-[state=active]:bg-foreground/8 text-gray-600 dark:text-neutral-300",
3737
)}

typescript-sdk/apps/dojo/src/components/file-tree/file-tree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function FileTreeNode({
3434
"flex w-full items-center gap-2 rounded-sm px-2 py-1 text-sm text-gray-700 dark:text-gray-200",
3535
"mix-from-cpk-docs-primary mix-to-white mix-25",
3636
!isSelected && "hover:bg-foreground/5 hover:text-gray-900 dark:hover:text-white",
37-
isSelected && (isInsideCpkFrame || true
37+
isSelected && (isInsideCpkFrame
3838
? "bg-mix/15 text-cpk-docs-primary dark:text-mix"
3939
: "bg-foreground/10 text-gray-900 dark:text-white"),
4040
depth === 1 && "ml-0.5",

0 commit comments

Comments
 (0)