Skip to content

Commit 335c295

Browse files
committed
fix(ui): use hover-hover prefix on CopyCodeButton callers to correctly override ghost variant
1 parent 0ecd6bd commit 335c295

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

apps/sim/app/chat/components/message/components/markdown-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ function createCustomComponents(LinkComponent: typeof LinkWithPreview) {
9999
</span>
100100
<CopyCodeButton
101101
code={extractTextContent(codeContent)}
102-
className='text-gray-400 hover:bg-gray-700 hover:text-gray-200'
102+
className='text-gray-400 hover-hover:bg-gray-700 hover-hover:text-gray-200'
103103
/>
104104
</div>
105105
<pre className='overflow-x-auto p-4 font-mono text-gray-200 dark:text-gray-100'>

apps/sim/app/workspace/[workspaceId]/home/components/message-content/components/chat-content/chat-content.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const MARKDOWN_COMPONENTS = {
147147
<span className='text-[var(--text-tertiary)] text-xs'>{language || 'code'}</span>
148148
<CopyCodeButton
149149
code={codeString}
150-
className='-mr-2 text-[var(--text-tertiary)] hover:bg-[var(--surface-5)] hover:text-[var(--text-secondary)]'
150+
className='-mr-2 text-[var(--text-tertiary)] hover-hover:bg-[var(--surface-5)] hover-hover:text-[var(--text-secondary)]'
151151
/>
152152
</div>
153153
<div className='code-editor-theme bg-[var(--surface-5)] dark:bg-[var(--code-bg)]'>

0 commit comments

Comments
 (0)