Skip to content

Improvement: Unify field height to 36px and replace display-only disabled inputs with borderless read-only fields #1942

Closed

Description

@yannickmonney

Problem

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

  1. Audit any control rendering at a non-36px height when disabled and normalize to h-9.
  2. 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.
  3. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions