chore(ui): a11y touch-targets sweep + useUserDisplay JSDoc refresh

This commit is contained in:
Александр Зимин
2026-05-27 15:49:17 +00:00
parent 2868e8635a
commit c1a006765f
3 changed files with 26 additions and 12 deletions
@@ -382,7 +382,11 @@ function SidebarFooter({
}
title={collapsed ? t('sidebar.expand', { defaultValue: 'Развернуть' }) : t('sidebar.collapse', { defaultValue: 'Свернуть' })}
className={cn(
'border-t border-line shrink-0 h-8 flex items-center gap-2 text-cap text-mute hover:text-ink hover:bg-surface-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',
// h-11 = 44px WCAG AAA touch target per DESIGN.md §13 (был h-8/32px,
// отмечено в /design-review TODOS.md P1-3). Desktop sidebar только
// (hidden lg:flex) — mobile использует burger из TopBar. h-11 не
// ломает вертикальный rhythm и matches TopBar h-11.
'border-t border-line shrink-0 h-11 flex items-center gap-2 text-cap text-mute hover:text-ink hover:bg-surface-2 transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',
collapsed ? 'justify-center' : 'px-4',
)}
>