Skip to content

Improvement: Add tooltips explaining why a disabled control is disabled #1949

Closed

Description

@yannickmonney

Problem

Disabled buttons / fields / controls give no reason for being disabled.

Current behavior

Tooltip primitives exist (packages/ui/src/components/overlays/tooltip.tsx, app wrapper services/platform/app/components/ui/overlays/tooltip.tsx) but are not systematically attached to disabled controls. Note: disabled elements don't emit pointer events, so the tooltip trigger needs a wrapper span / pointer-events handling.

Proposed change

  • Add a shared disabledReason (tooltip) affordance to the shared Button, IconButton, and form-field primitives that, when disabled, wraps the control so a tooltip + aria-describedby explains why.
  • Apply it to all controls that have a disabled state.

Acceptance criteria

  • Every disabled button/field/control surfaces a reason on hover/focus.
  • Works for keyboard users (accessible name/description).

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