Merge branch 'main' into task/qlfw-30
Some checks failed
ci / checks (pull_request) Failing after 9s
deploy / deploy (pull_request) Failing after 9s

This commit is contained in:
peppa-bot 2026-11-17 17:56:52 +05:00
commit 7134bac685
4 changed files with 10 additions and 1 deletions

View File

@ -0,0 +1 @@
Только классы Tailwind в Header.tsx; цвета из темы (burgundy/graphite). aria-current сохранён.

View File

@ -0,0 +1,5 @@
## Why
Текущий язык в переключателе отличался от остальных только тонким подчёркиванием.
## What Changes
Текущий язык: жирный, бордовый, подчёркивание 2px. Остальные: обычный начертание, графитовый цвет. Одинаково на всех языках и экранах.

View File

@ -0,0 +1,3 @@
## 1. Реализация
- [x] 1.1 Стили текущего и остальных языков в Header
- [x] 1.2 lint, typecheck, test

View File

@ -25,7 +25,7 @@ export function Header({ t, locale, showProjects, showNews, path = '' }: { t: Di
<div className="order-2 flex gap-3 text-sm md:order-3" aria-label={t.language}>
{locales.map((l) => (
<Link key={l} href={`/${l}${path}`} hrefLang={l} aria-current={l === locale ? 'true' : undefined}
className={l === locale ? 'font-semibold text-graphite underline underline-offset-4' : 'text-graphite hover:text-burgundy'}>
className={l === locale ? 'font-bold text-burgundy underline decoration-2 underline-offset-4' : 'font-normal text-graphite hover:text-burgundy'}>
{l.toUpperCase()}
</Link>
))}