Unverified Commit dcefcaa2 authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3209903 by IndrajithKB, aaron.ferris, Gauravmahlawat, Abhijith S,...

Issue #3209903 by IndrajithKB, aaron.ferris, Gauravmahlawat, Abhijith S, tushar_sachdeva, Kristen Pol, larowlan: Image overlaps in layout builder with +Add block +Add section

(cherry picked from commit 48c05915)
parent ed80c4d6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
{% extends "field--text.html.twig" %}
+1 −0
Original line number Diff line number Diff line
{% extends "field--text.html.twig" %}
+20 −0
Original line number Diff line number Diff line
{% extends "field.html.twig" %}
{#
/**
 * @file
 * Theme override for a text field.
 *
 * A 'clearfix' class is added, because 'text' fields have a 'format' property
 * that allows a Text Format to be associated with the entered text, which then
 * applies filtering on output. A common use case is to align images to the left
 * or right, and without this 'clearfix' class, such aligned images may be
 * rendered outside of the 'text' field formatter's boundaries, and hence
 * overlap with other fields. By setting the 'clearfix' class on all 'text'
 * fields, we prevent that.
 *
 * @see https://www.drupal.org/node/2358529
 *
 * @ingroup themeable
 */
#}
{% set attributes = attributes.addClass('clearfix') %}