Image buttons cannot be kept in Gin's sticky form actions

Created on 2 August 2025, 1 day ago

Problem/Motivation

Core's image button form element is a valid alternative to a standard submit input form element.

As noted in ✨ UX when using gin with Contnet Moderation and Workflows Active , Workflow Buttons module pairs very well with Gin for improving the experience of using content moderation workflows, and the 2.0.x branch of Workflow Buttons' "Trash workflow" submodule switches to using the image button to have a trash icon for the soft-delete, similar to the trash icon Claro/Gin add to core's delete link. This trashcan-symbol delete button should live in the main buttons, not the more actions dropdown (although we should probably make this configurable in Workflow Buttons).

But in short swapping the submit button out and substituting an image button for it works, and Gin should support this core form element when adding Gin attributes and looking for the #gin_action_item flag.

Steps to reproduce

Proposed resolution

Treat button #type image_button the same as submit.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024