Hello,

I try to custom my theme with icons on buttons of checkout and review pages. However, I can't add it on few buttons with css because ::before is not displayed on input field.

How to do to replace input submit by button ?

Thanks in advance.

Comments

selinav created an issue. See original summary.

bojanz’s picture

Status: Active » Closed (won't fix)

That is a general Drupal question that is outside the scope of this issue queue, sorry.

Generally, the form element depends on the theme, I know Bootstrap uses regular buttons.

scottsawyer’s picture

According to the Drupal Docs

Provides an action button form element.

When the button is pressed, the form will be submitted to Drupal, where it is validated and rebuilt. The submit handler is not invoked.

So, if my understanding is correct, even if you go through the trouble of changing "submit" to "button", it won't work.

selinav’s picture

If anyone knows how to do, please give me the tip.
Thank you

scottsawyer’s picture

@selinav, this would likely take altering the form, unsetting the #submit, adding a #button with an ajax command. i.e. it's not trivial.