Allow to provide a custom #icon for an element with the enabled "Iconize Buttons" setting

Created on 25 July 2019, over 5 years ago
Updated 30 October 2023, about 1 year ago

Nature of the bug:

  • an enabled "Iconize Buttons" theme setting
  • a form contains a list of submit buttons
  • one of the submit buttons contains a text "Save"
  • need to provide a custom icon (or disable it at all) for the button

Seems with the current implementation of the _bootstrap_iconize_button() it's impossible to pass a custom icon for an element via the "#icon" property. I propose to add a isset($element['#icon'])check.

πŸ› Bug report
Status

Closed: won't fix

Version

4.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland chalk

Live updates comments and jobs are added and updated live.
  • needs backport to 7.x-3.x

    The patch should be considered for backport to the 7.x-3.x branch. Note: This tag should generally remain even after the backport has been written, approved, and committed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024