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.
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
Comment #2
bojanz commentedThat 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.
Comment #3
scottsawyerAccording to the Drupal Docs
So, if my understanding is correct, even if you go through the trouble of changing "submit" to "button", it won't work.
Comment #4
selinav commentedIf anyone knows how to do, please give me the tip.
Thank you
Comment #5
scottsawyer@selinav, this would likely take altering the form, unsetting the #submit, adding a #button with an ajax command. i.e. it's not trivial.
Comment #6
anybodyRelated core issue: #1671190: Use <button /> form element type instead of <input type="submit" />