Merge branch 'fix/v1.3.1-fonts-sidebar' into 'main'

fix(admin-ui): sidebar fonts per handoff

See merge request 2-6/2-6-4/terravault/ordinis!43
This commit is contained in:
Александр Зимин
2026-05-11 10:56:46 +00:00
@@ -126,7 +126,7 @@ export function Sidebar() {
{visibleSections.map((section, idx) => (
<div key={idx} className="flex flex-col gap-0.5">
{section.label && (
<div className="px-3 py-1 text-2xs font-display uppercase tracking-[0.10em] text-mute">
<div className="px-3 py-1 font-display uppercase tracking-[0.10em] text-mute text-[10.5px] leading-none">
{section.label}
</div>
)}
@@ -179,7 +179,9 @@ function SidebarLink({ to, label, icon: Icon, badge }: NavItem) {
<Link
to={to}
className={cn(
'group flex items-center gap-2.5 px-3 py-1.5 rounded-md text-sm transition-colors',
// 13px per handoff spec для workhorse body text. text-sm = 14px (Tailwind),
// text-[13px] = exact handoff value.
'group flex items-center gap-2.5 px-3 py-1.5 rounded-md text-[13px] transition-colors',
active
? 'bg-accent-bg text-accent font-medium'
: 'text-ink-2 hover:text-ink hover:bg-surface-2',
@@ -190,7 +192,7 @@ function SidebarLink({ to, label, icon: Icon, badge }: NavItem) {
{badge !== undefined && (
<span
className={cn(
'inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-sm text-2xs font-mono',
'inline-flex items-center justify-center min-w-5 h-5 px-1.5 rounded-sm text-[11px] font-mono',
active
? 'bg-accent text-on-accent'
: 'bg-surface-2 text-ink-2 group-hover:bg-line',