You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvement: Unify field height to 36px and replace display-only disabled inputs with borderless read-only fields #1942
Some disabled fields render at a different height than active inputs, and disabled inputs are used where the value is purely informational — looking heavy and shifting layout.
Current behavior
Inputs use h-9 (36px): packages/ui/src/components/forms/input.tsx:20, services/platform/app/components/ui/forms/input.tsx:25, select trigger select.tsx:58.
Disabled styling is disabled:cursor-not-allowed disabled:opacity-50 (input.tsx:23) — there is no read-only visual variant.
A borderless read-only display primitive already exists: Field (services/platform/app/components/ui/forms/field.tsx).
Proposed change
Audit any control rendering at a non-36px height when disabled and normalize to h-9.
Add a readOnly visual variant: transparent background, no border, same h-9 height + horizontal padding as an input so there is no layout shift when toggling. Extend the app Input wrapper or align Field to input metrics — it should behave like normal text but occupy the field's footprint.
Replace display-only disabled fields (values the user cannot edit in context) with the read-only variant. Keep disabled only where the control is temporarily unavailable (and pair with the disabled-reason tooltip issue).
Acceptance criteria
All form controls measure 36px tall in every state.
Display-only values render borderless and text-like, with no layout shift vs. their editable state.
A Storybook story / visual check demonstrates editable vs. read-only vs. disabled.
Activity
feat(platform): add borderless read-only input variant (#1942) (#2131)