hololake-platform/apps/tolaria/patches/0009-test-lock-in-readable-editor-theme-defaults.patch
Guanghu Domestic Migration dd131ff814
Some checks are pending
Build Windows Internal Installer / Build Windows x64 internal installer (push) Waiting to run
chore: import sanitized domestic snapshot for REPO-008
Source snapshot: 789bd691f530f915fc870bf72ecb7c96c5d5101c
2026-07-17 16:01:12 +08:00

39 lines
1.5 KiB
Diff

From 59ce6261d3dff070a138934d8038e0a935c003c7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=86=B0=E6=9C=94?= <565183519@qq.com>
Date: Fri, 17 Jul 2026 11:15:45 +0800
Subject: [PATCH 9/9] test: lock in readable editor theme defaults
---
src/hooks/useTheme.test.ts | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/hooks/useTheme.test.ts b/src/hooks/useTheme.test.ts
index aecc7bd..27d1f6c 100644
--- a/src/hooks/useTheme.test.ts
+++ b/src/hooks/useTheme.test.ts
@@ -3,11 +3,11 @@ import { renderHook } from '@testing-library/react'
import { useEditorTheme } from './useTheme'
describe('useEditorTheme', () => {
- it('keeps inline code on the muted editor surface without exporting code block overrides', () => {
+ it('gives inline code a subtle accent surface without exporting code block overrides', () => {
const { result } = renderHook(() => useEditorTheme())
expect(result.current.cssVars['--inline-styles-code-background-color']).toBe(
- 'var(--bg-hover-subtle)'
+ 'color-mix(in srgb, var(--accent-blue) 11%, var(--bg-hover-subtle))'
)
expect(result.current.cssVars['--code-blocks-background-color']).toBeUndefined()
})
@@ -27,6 +27,6 @@ describe('useEditorTheme', () => {
it('exports the default editor max width', () => {
const { result } = renderHook(() => useEditorTheme())
- expect(result.current.cssVars['--editor-max-width']).toBe('820px')
+ expect(result.current.cssVars['--editor-max-width']).toBe('880px')
})
})
--
2.50.1 (Apple Git-155)