Hi and thanks again for this useful module. It makes the theming of form elements in drupal a bit less of a pain.
I currently use the module to add a form-id__field-name class to every form element and it works pretty fine.
Do you think it would make sense to extend the module for use with the input / select etc. twig templates?
In my current use I have a class on the form-element wrapper but sometimes I need a class in the specific input element - otherwise I need to break with the BEM paradigma.
Would you say theme suggestions and especially the form_id variable would make sense to add for every form element type?
I maybe could even help creating that feature if it helps.
Comments
Comment #2
lauriiiI'd like to avoid shipping with templates because that have potential implications on sites. I'd like to keep this as compatible as possible. One idea could be to ship with demo templates that are not actually loaded.
I think we could definitely add the variable for every form element template. It would be nice to document that somehow so that people knows that it is available for them.
Comment #3
webcultist commentedThat would be nice =)