Skip to content

Commit

Permalink
Removed modifier_class from the container.
Browse files Browse the repository at this point in the history
This should be added through Drupal attributes.
  • Loading branch information
AlexSkrypnyk committed Dec 18, 2023
1 parent 6e89f76 commit 180af5d
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions web/themes/contrib/civictheme/templates/form/container.html.twig
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
{#
/**
* @file
* Default theme implementation of a container used to wrap child elements.
*
* Used for grouped form items. Can also be used as a theme wrapper for any
* renderable element, to surround it with a <div> and HTML attributes.
* See \Drupal\Core\Render\Element\RenderElement for more
* information on the #theme_wrappers render array property, and
* \Drupal\Core\Render\Element\container for usage of the container render
* element.
*
* Available variables:
* - attributes: HTML attributes for the containing element.
* - children: The rendered child elements of the container.
* - has_parent: A flag to indicate that the container has one or more parent
containers.
*
* @see template_preprocess_container()
*
* @ingroup themeable
* CivicTheme implementation of a container used to wrap child elements.
*/
#}
{% set classes = [
'container',
has_parent ? 'js-form-wrapper form-wrapper',
modifier_class ? modifier_class,
'ct-contianer',
] %}
<div {{ attributes.addClass(classes) }}>
{{ children }}
Expand Down

0 comments on commit 180af5d

Please sign in to comment.