diff --git a/src/renderer/src/components/native-chat/appearance/native-chat-appearance-style.ts b/src/renderer/src/components/native-chat/appearance/native-chat-appearance-style.ts index d01c4028497..a7ad3d10708 100644 --- a/src/renderer/src/components/native-chat/appearance/native-chat-appearance-style.ts +++ b/src/renderer/src/components/native-chat/appearance/native-chat-appearance-style.ts @@ -143,7 +143,9 @@ function applyTerminalChatColors( '--chat-inline-code-border-mix': light ? '9%' : '8%', '--chat-composer-mix': light ? '0%' : '4%', '--chat-composer-base': light ? 'var(--chat-canvas)' : 'transparent', - '--chat-composer-border-mix': light ? '11%' : '9%' + '--chat-composer-border-mix': light ? '11%' : '9%', + '--question-card-border-mix': light ? '14%' : '16%', + '--question-option-border-mix': light ? '16%' : '12%' }) } diff --git a/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.test.tsx b/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.test.tsx index ae7c0537cc7..10dddf73699 100644 --- a/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.test.tsx +++ b/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.test.tsx @@ -149,13 +149,13 @@ describe('NativeChatQuestionCard', () => { // Focus is a ring only; the picked look (primary border, fill) is reserved for aria-pressed rows. expect(rows[0]!.getAttribute('aria-pressed')).toBe('false') expect(rows[0]!.className).not.toMatch(/(^|\s)(focus:)?bg-accent(\s|$)/) - expect(rows[0]!.className).not.toContain('border-primary') + expect(rows[0]!.parentElement!.className).not.toContain('border-primary') expect(confirmButton().textContent).toBe('Skip') act(() => rows[1]!.click()) expect(rows[1]!.getAttribute('aria-pressed')).toBe('true') - expect(rows[1]!.className).toContain('border-primary') - expect(rows[0]!.className).not.toContain('border-primary') + expect(rows[1]!.parentElement!.className).toContain('border-primary') + expect(rows[0]!.parentElement!.className).not.toContain('border-primary') // The Enter hint is decoration; the button's name stays "Submit". const submit = confirmButton() expect(submit.querySelector('[aria-hidden]')?.textContent).toBe('↵') diff --git a/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.tsx b/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.tsx index dfa7f56e7e3..0cfef61f3a3 100644 --- a/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.tsx +++ b/src/renderer/src/components/native-chat/prompts/NativeChatQuestionCard.tsx @@ -334,7 +334,7 @@ export function NativeChatQuestionCard({ {questionAllowsOther ? (
{preview}
diff --git a/src/renderer/src/components/native-chat/prompts/use-native-chat-prompt-card-focus.ts b/src/renderer/src/components/native-chat/prompts/use-native-chat-prompt-card-focus.ts
index 09ffad3343e..25d5c4430a8 100644
--- a/src/renderer/src/components/native-chat/prompts/use-native-chat-prompt-card-focus.ts
+++ b/src/renderer/src/components/native-chat/prompts/use-native-chat-prompt-card-focus.ts
@@ -7,7 +7,8 @@ const PROMPT_CARD_FOCUS_TARGET_SELECTOR =
function focusPromptCard(card: HTMLElement): void {
const target = card.querySelector