Verified Commit 4b052b57 authored by Lauri Timmanee's avatar Lauri Timmanee
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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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',
+0 −9
Original line number Diff line number Diff line
@@ -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.
 */
+3 −0
Original line number Diff line number Diff line
@@ -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') }}>