Unverified Commit 4b052b57 authored by lauriii's avatar lauriii
Browse files

Issue #3105575 by himanshu_sindhwani, Hardik_Patel_12, pradeepjha,...

Issue #3105575 by himanshu_sindhwani, Hardik_Patel_12, pradeepjha, kishor_kolekar, bnjmnm, priyanka.sahni, siddhant.bhosale, Indrajith KB: Move HTML classes from claro_preprocess_textarea to a template
parent e77ca8b3
......@@ -306,7 +306,6 @@ public function providerTestClassyCopies() {
'rdf-metadata.html.twig',
'help-section.html.twig',
'progress-bar.html.twig',
'textarea.html.twig',
'radios.html.twig',
'item-list.html.twig',
'aggregator-feed.html.twig',
......
......@@ -748,15 +748,6 @@ function claro_preprocess_input(&$variables) {
}
}
/**
* Implements template_preprocess_HOOK() for textarea.
*/
function claro_preprocess_textarea(&$variables) {
$variables['attributes']['class'][] = 'form-element';
$variables['attributes']['class'][] = 'form-element--type-textarea';
$variables['attributes']['class'][] = 'form-element--api-textarea';
}
/**
* Implements template_preprocess_HOOK() for select.
*/
......
......@@ -18,6 +18,9 @@
'form-textarea',
resizable ? 'resize-' ~ resizable,
required ? 'required',
'form-element',
'form-element--type-textarea',
'form-element--api-textarea',
]
%}
<div{{ wrapper_attributes.addClass('form-textarea-wrapper') }}>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment