Merge branch 'main' into task/qlfw-18
This commit is contained in:
commit
4c52c5b389
@ -0,0 +1 @@
|
|||||||
|
Только классы Tailwind в Header.tsx; цвета из темы (burgundy/graphite). aria-current сохранён.
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
## Why
|
||||||
|
Текущий язык в переключателе отличался от остальных только тонким подчёркиванием.
|
||||||
|
|
||||||
|
## What Changes
|
||||||
|
Текущий язык: жирный, бордовый, подчёркивание 2px. Остальные: обычный начертание, графитовый цвет. Одинаково на всех языках и экранах.
|
||||||
@ -0,0 +1,3 @@
|
|||||||
|
## 1. Реализация
|
||||||
|
- [x] 1.1 Стили текущего и остальных языков в Header
|
||||||
|
- [x] 1.2 lint, typecheck, test
|
||||||
@ -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}>
|
<div className="order-2 flex gap-3 text-sm md:order-3" aria-label={t.language}>
|
||||||
{locales.map((l) => (
|
{locales.map((l) => (
|
||||||
<Link key={l} href={`/${l}${path}`} hrefLang={l} aria-current={l === locale ? 'true' : undefined}
|
<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()}
|
{l.toUpperCase()}
|
||||||
</Link>
|
</Link>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user