diff --git a/web-ui/app/_components/LocaleSwitcher.tsx b/web-ui/app/_components/LocaleSwitcher.tsx index a4f0468c..192836f5 100644 --- a/web-ui/app/_components/LocaleSwitcher.tsx +++ b/web-ui/app/_components/LocaleSwitcher.tsx @@ -34,7 +34,7 @@ export function LocaleSwitcher(): React.ReactElement { className="appearance-none rounded-md border border-[color:var(--border)] bg-transparent px-2 py-1 text-xs uppercase tracking-[0.18em] text-[color:var(--muted-ink)] outline-none transition-colors hover:text-[color:var(--ink)] focus:border-[color:var(--accent)] disabled:opacity-50" > {LOCALES.map((locale) => ( - ))} diff --git a/web-ui/app/_components/ThemeControls.tsx b/web-ui/app/_components/ThemeControls.tsx index dd615fd1..9b7cce18 100644 --- a/web-ui/app/_components/ThemeControls.tsx +++ b/web-ui/app/_components/ThemeControls.tsx @@ -105,11 +105,7 @@ export function ThemeControls(): React.ReactElement { className={selectClass} > {PALETTES.map((p) => ( - ))} @@ -134,11 +130,7 @@ export function ThemeControls(): React.ReactElement { className={selectClass} > {THEMES.map((m) => ( - ))} diff --git a/web-ui/app/_components/__tests__/ThemeControls.test.tsx b/web-ui/app/_components/__tests__/ThemeControls.test.tsx new file mode 100644 index 00000000..f052d8b9 --- /dev/null +++ b/web-ui/app/_components/__tests__/ThemeControls.test.tsx @@ -0,0 +1,32 @@ +import { describe, expect, it } from 'vitest'; + +import { renderWithIntl } from '../../_lib/test-utils'; +import { ThemeControls } from '../ThemeControls'; + +/** + * Regression guard for issue #360 — the previous `