Skip to content

Workflow form fields look like inputs again - #365

Merged
mattshax merged 1 commit into
mainfrom
form-inputs
Oct 2, 2026
Merged

mattshax merged 1 commit into
mainfrom
form-inputs

Conversation

@mattshax

@mattshax mattshax commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Workflow form fields look like inputs again (#365)

In a workflow's form, text and number fields rendered as bare text: no border, no background, no padding. The form library draws them with a global input, textarea rule in a base cascade layer. Since v1.65's layer ordering (web/src/layers.css), the Studio ranks that layer below the shared packages' Tailwind resets on purpose, so it cannot restyle inputs elsewhere in the Studio; inside the workflow form the resets therefore won and stripped the fields. Selects and text areas were unaffected because the Studio draws those itself.

The workflow form now gets the Studio's own field look, scoped to .wf-form: border, input background, 6px radius, padding, a focus ring, a muted placeholder, and a 32px height shared with the Studio's selects. A combobox input keeps room on the right for its arrow button.

The library's Yes/No switch paints its handle and its unselected half with a fixed white-to-gray gradient and has no dark variant, so in dark mode it showed as a bright white bar; in dark mode those parts now take shades of the panel color, with the handle a step lighter than the label. This also applies to the switches in Settings.

Checked in headless Chrome on a marketplace workflow's form (cluster picker, switches, text fields, a single-select dropdown, a multi-select) in light and dark: every field has a 1px border, the input background, and 8px padding. All tests pass.

@mattshax
mattshax merged commit 99607a7 into main Oct 2, 2026
2 checks passed
@mattshax
mattshax deleted the form-inputs branch October 2, 2026 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant