QLFW-34: текущий язык в переключателе заметно выделен #22

Merged
peppa-bot merged 1 commits from task/qlfw-34 into main 2026-11-17 17:55:07 +05:00
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>
))}