- Issue created by @milos.kroulik
- Status changed to Closed: duplicate
9 months ago 11:16am 22 March 2024 - π«π·France PhilY πͺπΊπ«π· Paris, France
Duplicate of https://www.drupal.org/node/3417130 β
While I was building a webform, I noticed that form element wrapper classes are not passed to the component markup. The reason is that wrapper attributes are passed to form-element.html.twig
template in attributes
variable, but form-element.twig
template uses form_element_attributes
for the wrapper element.
I think it should be handled in a way that makes passed attributes work, but also allow overriding the via the component props. It would probably make sense to review all components to see if it's not happening elsewhere.
Closed: duplicate
6.0
Code
Duplicate of https://www.drupal.org/node/3417130 β