From c5bf0ad00e49085dbbd86ae66ce772bd1522091f Mon Sep 17 00:00:00 2001 From: chihlasm Date: Tue, 24 Mar 2026 05:45:58 +0000 Subject: [PATCH] fix: replace bg-accent with neutral backgrounds on code/kbd elements MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bg-accent maps to bright cyan (#22d3ee) in Tailwind v4 — wrong for code elements and keyboard shortcut badges. This was a recurring issue across the app where every backticked term glowed cyan. - Code blocks: bg-accent → bg-code (#14161e) - Inline code: bg-accent → bg-white/[0.08] (subtle neutral tint) - Kbd badges: bg-accent → bg-white/[0.08] - AI chat markdown: same fixes in MarkdownContent.tsx Cyan remains reserved for interactive elements (buttons, active nav, links) per the design system. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../components/procedural-editor/StepEditor.tsx | 2 +- .../src/components/tree-editor/NodeEditorModal.tsx | 2 +- .../tree-editor/code-mode/SyntaxHelpPanel.tsx | 2 +- frontend/src/components/ui/MarkdownContent.tsx | 6 +++--- frontend/src/pages/MaintenanceFlowDetailPage.tsx | 2 +- frontend/src/pages/TreeNavigationPage.tsx | 14 +++++++------- frontend/src/pages/admin/InviteCodesPage.tsx | 2 +- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/procedural-editor/StepEditor.tsx b/frontend/src/components/procedural-editor/StepEditor.tsx index 1b995d3c..af469402 100644 --- a/frontend/src/components/procedural-editor/StepEditor.tsx +++ b/frontend/src/components/procedural-editor/StepEditor.tsx @@ -112,7 +112,7 @@ export function StepEditor({ step, stepNumber, onUpdate, onCollapse, availableVa diff --git a/frontend/src/components/tree-editor/NodeEditorModal.tsx b/frontend/src/components/tree-editor/NodeEditorModal.tsx index 43312d96..61c0fdb6 100644 --- a/frontend/src/components/tree-editor/NodeEditorModal.tsx +++ b/frontend/src/components/tree-editor/NodeEditorModal.tsx @@ -86,7 +86,7 @@ export function NodeEditorModal({ node, onClose, isNewNode = false }: NodeEditor {/* Node ID display */}
- Node ID: {node.id} + Node ID: {node.id}
{/* Validation errors */} diff --git a/frontend/src/components/tree-editor/code-mode/SyntaxHelpPanel.tsx b/frontend/src/components/tree-editor/code-mode/SyntaxHelpPanel.tsx index 77b06cc0..c3033f5b 100644 --- a/frontend/src/components/tree-editor/code-mode/SyntaxHelpPanel.tsx +++ b/frontend/src/components/tree-editor/code-mode/SyntaxHelpPanel.tsx @@ -103,7 +103,7 @@ function Row({ label, code }: { label: string; code: string }) { return (
{label} - {code} + {code}
) } diff --git a/frontend/src/components/ui/MarkdownContent.tsx b/frontend/src/components/ui/MarkdownContent.tsx index ac7596e1..7eefee46 100644 --- a/frontend/src/components/ui/MarkdownContent.tsx +++ b/frontend/src/components/ui/MarkdownContent.tsx @@ -43,7 +43,7 @@ export function MarkdownContent({ content, className }: MarkdownContentProps) { return ( {children} @@ -63,7 +63,7 @@ export function MarkdownContent({ content, className }: MarkdownContentProps) { }, // Style code blocks (pre) pre: ({ children }) => ( -
+          
             {children}
           
), diff --git a/frontend/src/pages/MaintenanceFlowDetailPage.tsx b/frontend/src/pages/MaintenanceFlowDetailPage.tsx index 1d7f41b7..f1aeb5e6 100644 --- a/frontend/src/pages/MaintenanceFlowDetailPage.tsx +++ b/frontend/src/pages/MaintenanceFlowDetailPage.tsx @@ -193,7 +193,7 @@ export default function MaintenanceFlowDetailPage() { : } {schedule.is_active ? 'Active' : 'Paused'} - + {schedule.cron_expression} ({schedule.timezone}) diff --git a/frontend/src/pages/TreeNavigationPage.tsx b/frontend/src/pages/TreeNavigationPage.tsx index 6498ca82..643c3c75 100644 --- a/frontend/src/pages/TreeNavigationPage.tsx +++ b/frontend/src/pages/TreeNavigationPage.tsx @@ -954,7 +954,7 @@ export function TreeNavigationPage() {

{cmd.label}

- + {cmd.command}
diff --git a/frontend/src/pages/admin/InviteCodesPage.tsx b/frontend/src/pages/admin/InviteCodesPage.tsx index 77057a9c..233f82f8 100644 --- a/frontend/src/pages/admin/InviteCodesPage.tsx +++ b/frontend/src/pages/admin/InviteCodesPage.tsx @@ -119,7 +119,7 @@ export function InviteCodesPage() { key: 'code', header: 'Code', render: (c) => ( - {c.code} + {c.code} ), }, {