fix(ptica): button font-size — :where() so component classes win over reset #1858
No reviewers
Labels
No labels
admin
analytics
auth
automation
bug
business
chore
ci
compliance
data
data-moat
docs
duplicate
dx
enhancement
Fable 5 ревью
feedback/max
generative
GG-форсайт
needs-discussion
needs-human
observability
pause-bots
performance
priority/p0
priority/p1
priority/p2
priority/p3
scope/backend
scope/db
scope/devops
scope/frontend
scope/qa
scrapers
security
site-finder
stage/1
stage/2
status/blocked
status/done
status/needs-analysis
status/needs-fix
status/qa
status/ready
status/review
status/wip
tech-debt
tradein
ux
week ревью 1
wontfix
вторичка
ИРД
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lekss361/gendesign#1858
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "fix/ptica-button-fontsize"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The left rail looked «неровное» because every cockpit button was rendering at 13px instead of its designed size.
.pticaRoot button { font: inherit }(specificity 0,1,1) was beating single-class rules —.navItem9px,.tab11px,.detailBtn9px,.ptab. Oversized labels overflowed the 96px rail (long ones — ПОТЕНЦИАЛ/ЭКОНОМИКА/СРАВНЕНИЕ — shoved ~12px right of centre).Fix:
.pticaRoot :where(button)drops specificity to (0,1,0); the per-component classes (later in source) now win their font-size, matching the prototype's barebutton {}.Verified on a live local render of the real cockpit: rail labels 13→9px, every item re-centres at exactly 47.5px; tabs 11px; «Подробнее» buttons 9px. tsc 0 · lint clean · build OK.
🤖 Generated with Claude Code
The scoped reset `.pticaRoot button { font: inherit }` had specificity (0,1,1), beating single-class button rules like .navItem (9px), .tab (11px), .detailBtn (9px), .ptab — so every cockpit button was forced back to the root 13px. The oversized labels overflowed the 96px left rail (icons/text shoved right of centre, «неровное») and bloated tabs/buttons across the cockpit. Wrap the selector in :where(button) → specificity (0,1,0); the per-component classes (later in source) now win their font-size, matching the prototype's bare `button {}`. Verified on a live local render: rail labels 13→9px and every item re-centres at 47.5px; tabs 11px; detail buttons 9px.