You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.
…which overrides some of the stylings of the submit button.
The reason is that input.twig hardcodes the "form-item__textfield" class and adds it to every input type. Which means submit inputs get it too but they definitely are not text inputs! :)
There are more possible solutions.
Create a separate _input-text.twig template, add the class to that only and add separate Drupal templates for text-like inputs (input--textfield.html.twig, input--email.html.twig etc.) which include this component instead of _input.twig.
Create an input--submit.html.twig Drupal template which includes the button component. In this case we have to submit the input value as 'button_content'.
Refactor the whole thing and do not include a hardcoded class. This could be a longer-term goal… :)
The text was updated successfully, but these errors were encountered:
…which overrides some of the stylings of the submit button.
The reason is that input.twig hardcodes the "form-item__textfield" class and adds it to every input type. Which means submit inputs get it too but they definitely are not text inputs! :)
There are more possible solutions.
The text was updated successfully, but these errors were encountered: