summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2015-07-28 12:42:41 (GMT)
committerAlex Pott2015-07-28 12:42:41 (GMT)
commitdead5beb7c463ff160b6e95b8df2b7c0e242a0b5 (patch)
tree85aa6c7ff662bce343c2b1d483e41ce31ce23991
parentdfefab5ee709e33ac42294f511fc0e3256262c19 (diff)
Issue #2539860 by jeni_dc, LewisNyman: Add a class to field that contain user-generated formatted text
-rw-r--r--core/themes/classy/templates/field/field--text.html.twig10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/themes/classy/templates/field/field--text.html.twig b/core/themes/classy/templates/field/field--text.html.twig
index 9cd1ab9..5d1690c 100644
--- a/core/themes/classy/templates/field/field--text.html.twig
+++ b/core/themes/classy/templates/field/field--text.html.twig
@@ -14,7 +14,15 @@
*
* @see https://www.drupal.org/node/2358529
*
+ * A 'text-formatted' class is added to assist with default styling of base
+ * elements such as paragraphs and lists that may not have classes assigned to
+ * them. This allows user entered content to have default styling without
+ * interfering with the styles of other UI components such as system generated
+ * lists or other dynamic content.
+ *
+ * @see https://www.drupal.org/node/2539860
+ *
* @ingroup themeable
*/
#}
-{% set attributes = attributes.addClass('clearfix') %}
+{% set attributes = attributes.addClass('clearfix', 'text-formatted') %}