Add a field to the schema for transitions to support #button_type

Created on 19 August 2023, over 1 year ago
Updated 23 July 2024, 4 months ago

When offering buttons in a UI for available transitions, it would be nice to style them as a primary, default or dangerous (As per the Drupal User Interface Standards ). Perhaps a field on a transition would be the best place to support this.

I understand transitions are not always triggered by a user interface, so calling it button_type might not be the best name. Maybe someone has a suggestion.

I'm floating this idea here as I think it would be the best approach to support a Commerce feature request "Place order" and "Fulfill order" should be styled as primary buttons 📌 "Place order" and "Fulfill order" should be styled as primary buttons Active .

Feature request
Status

Active

Version

1.0

Component

Code

Created by

🇨🇦Canada redsky

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024