Skip to content

[DS 2.0] Drop the warning and ghost-warning Button variants - #137

Open
librowski wants to merge 1 commit into
ds2-node-body-spacingfrom
ds2-button-drop-warning
Open

librowski wants to merge 1 commit into
ds2-node-body-spacingfrom
ds2-button-drop-warning

Conversation

@librowski

Copy link
Copy Markdown
Collaborator

Decision

Design review (10.09): the warning button has no practical use in the product or in the projects that consume the design system, and the orange text cannot reach the WCAG contrast threshold on any tint or on white. The warning and ghost-warning Button variants are removed. The semantic warning role stays where it carries information: Snackbar surface, canvas node focus ring, execution statuses.

Change

  • regular-button/types.ts: BUTTON_VARIANTS loses warning and ghost-warning.
  • variant.module.css: the two variant blocks and the --wb-public-button-warning-* / --wb-public-button-ghost-warning-* custom properties are removed.
  • The two in-repo consumers move to secondary: the import dialog's "Ignore and import" action (import-modal.tsx) and the warning Snackbar's action button (action-buttons.tsx). Both are cautionary secondary actions next to a primary one; critical would overstate them. Open to a different mapping.
  • Docs button example drops the two entries.

Release 3.0 already carries major changesets for @workflowbuilder/ui, so the removal ships in the same major with a Breaking changes: migration note (critical or secondary, ghost-critical or ghost-secondary). Changesets: ui major, sdk patch.

Verification

ui typecheck, eslint, stylelint, unit tests (button, snackbar), pnpm -F @workflowbuilder/ui build incl. check:built-css; sdk and docs typecheck.

@librowski
librowski force-pushed the ds2-button-drop-warning branch from 2a27f69 to b31a27d Compare September 14, 2026 07:21
@librowski
librowski marked this pull request as ready for review September 14, 2026 13:14
@librowski
librowski force-pushed the ds2-button-drop-warning branch from b31a27d to e7ed6fe Compare September 14, 2026 19:54
Design confirmed the warning button has no practical use in the product:
the only occurrences were the import dialog's ignore-and-import action and
the warning snackbar action, both of which now render as secondary. The
variants, their public custom properties and the docs example entries are
removed; the semantic warning role (snackbar surface, node focus ring,
execution statuses) is untouched. Migration steps live in the changeset.
@librowski
librowski changed the base branch from ds2-node-text-ellipsis to ds2-node-body-spacing September 15, 2026 08:54
@librowski
librowski force-pushed the ds2-button-drop-warning branch from e7ed6fe to 8edcc8c Compare September 15, 2026 08:54
@librowski
librowski added this pull request to stack #151 September 15, 2026 10:24
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.

2 participants