Move the remaining radius derivations onto the shape roles #255
Labels
No labels
adr
android
area/calendar
area/design-system
area/i18n
area/jobs
area/offline
area/server
area/testing
bug
ci
duplicate
enhancement
help wanted
invalid
notifications
question
reliability
security
severity/low
severity/medium
tracking
web
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eagraiclainne/app#255
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 shape roles exist now:
radius-panelandradius-btnare authored per theme indesign/tokens.yaml, generated into every surface, and the generator refuses a theme without them. The jobs flow reads them (.job-panel,.btn-done,.job-more, the ask-dialog buttons; ComposejobPanel(), theApp*Buttonfamily,JobMoreButton).The rest of the app still derives its corners locally.
web/src/app.cssholds about twentycalc(var(--radius) - Npx)andcalc(var(--radius) / 2)rules (pin keys, me-menu items, calendar chips, event rows, and more), plus a few hard-coded13px(.cal-pick-day,.menu-row). Android mirrors the habit withRoundedCornerShape((tokens.radiusDp - N).coerceAtLeast(...))andminOf(tokens.radiusDp, 12)inErrors.kt,TopBar.kt,More.kt,Home.kt,SwitchSheet.ktand others.Each of these is a place where the two surfaces can disagree per theme — the same defect the jobs flow had on hearth (panel 2px on web, 12dp on Android) before the roles landed.
The sweep:
--radius-panel/--radius-btn(radiusPanelDp/radiusBtnDp).tokens.yamlor a written verdict in the commit message for why it stays derived.Context: the roles were minted in
feat(tokens): the panel and button radii become generated roles(job-card-demo.dc.html §9 — read the role, never derive it).