Skip to content

Commit

Permalink
Updated the <textarea> template.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Boyd committed Aug 15, 2018
1 parent c11ea47 commit 51cf21b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions templates/form/textarea.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{#
/**
* @file
* Theme override for a 'textarea' #type form element.
*
* Available variables
* - wrapper_attributes: A list of HTML attributes for the wrapper element.
* - attributes: A list of HTML attributes for the textarea element.
* - resizable: An indicator for whether the textarea is resizable.
* - required: An indicator for whether the textarea is required.
* - value: The textarea content.
*
* @see template_preprocess_textarea()
*/
#}

{% set classes = ['au-text-input', 'au-text-input--block'] %}

<div{{ wrapper_attributes }}>
<textarea{{ attributes.addClass(classes) }}>{{ value }}</textarea>
</div>

0 comments on commit 51cf21b

Please sign in to comment.