From 8c80fd6113faf96e879085994aa176b9e7ae96b7 Mon Sep 17 00:00:00 2001 From: morgmart <98432065+morgmart@users.noreply.github.com> Date: Sat, 10 Oct 2026 15:20:13 -0700 Subject: [PATCH 1/2] Default icon actions to the compact size Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com> --- docs/design-system-adoption.md | 2 +- src/features/communities/CommunityRail.tsx | 2 ++ .../communities/CommunityRailItem.tsx | 1 + src/features/profiles/AvatarEditor.tsx | 1 + src/shared/design-system/DESIGN.md | 8 +++-- src/shared/design-system/ui/IconButton.tsx | 2 +- src/shared/design-system/ui/controls.test.tsx | 35 +++++++++++++++++++ src/shared/design-system/ui/registry.ts | 4 +-- tests/browser/avatar-edit.spec.mjs | 11 +++++- tests/browser/plugin-import.spec.mjs | 2 +- tests/browser/sidenav-polish.spec.mjs | 21 +++++++++++ .../design-system/ui/ButtonSpecimens.tsx | 4 +++ tests/fixtures/design-system/viewer.spec.ts | 14 ++++++++ 13 files changed, 99 insertions(+), 8 deletions(-) diff --git a/docs/design-system-adoption.md b/docs/design-system-adoption.md index 144b77892..b97c52e37 100644 --- a/docs/design-system-adoption.md +++ b/docs/design-system-adoption.md @@ -11,7 +11,7 @@ Use this map to find the shared owner before changing a product surface. | Area | Shared owner | App uses | | --- | --- | --- | | Colors and type | Surface, text, border, affordance, and complete type roles | Host aliases forward to shared roles. Feature CSS uses role names; inline links pair text and hover roles. | -| Actions | Button and IconButton | Retry, refresh, delete, recovery, composer send, and picker triggers. Standard sizes are 32/40/52px minimums. Labels stay on one line; surrounding layouts reflow whole controls or scroll. | +| Actions | Button and IconButton | Retry, refresh, delete, recovery, composer send, and picker triggers. Standard sizes are 32/40/52px; IconButton defaults to small and labelled Button defaults to medium. Text-button heights are minimums. Labels stay on one line; surrounding layouts reflow whole controls or scroll. | | Forms and choices | Field, Input, Textarea, RadioGroup, Checkbox | Profile, community setup, appearance, plugin import, and workflow editing. | | Search | SearchField | Channels, pages, members, and GIFs retain their query, refs, and keyboard handlers. | | Navigation | NavigationItem | Settings, channel rows, shell destinations, Home, and community choices. Route destinations use button semantics; the wide shell topbar is the documented chrome-tab exception. | diff --git a/src/features/communities/CommunityRail.tsx b/src/features/communities/CommunityRail.tsx index c8b4c1331..ed8073b11 100644 --- a/src/features/communities/CommunityRail.tsx +++ b/src/features/communities/CommunityRail.tsx @@ -193,6 +193,7 @@ export function CommunityRail({