diff -u b/core/modules/system/css/system.theme.css b/core/modules/system/css/system.theme.css --- b/core/modules/system/css/system.theme.css +++ b/core/modules/system/css/system.theme.css @@ -616,15 +616,16 @@ /* Field display */ .field__label { font-weight: bold; + vertical-align: top; } -.field-label--inline .field__label, -.field-label--inline .field__items { - float:left; /*LTR*/ +.field--label-inline .field__label, +.field--label-inline > .field__item, +.field--label-inline .field__items { + display: inline-block; padding-right: 0.5em; } -[dir="rtl"] .field-label--inline .field__label, -[dir="rtl"] .field-label--inline .field__items { - float: right; +[dir="rtl"] .field--label-inline .field__label, +[dir="rtl"] .field--label-inline .field__items { padding-left: 0.5em; } diff -u b/core/modules/system/templates/field.html.twig b/core/modules/system/templates/field.html.twig --- b/core/modules/system/templates/field.html.twig +++ b/core/modules/system/templates/field.html.twig @@ -23,6 +23,9 @@ * - content_attributes: HTML attributes for the content. * - items: List of all the field items. * - item_attributes: List of HTML attributes for each item. + * - field_type: + * - field_name: + * - field_label: * * @see template_preprocess_field() * @@ -33,16 +36,16 @@ {# {{ attributes.class }} provides a way for modules to add classes to fields dynamically. - -{{ attributes }} , {{ title_attributes }} & {{ item_attributes[delta] }} ... #} -{% set cssclass %} -field field-name--{{ field_name }} field-type--{{ field_type }} field-label--{{ field_label }}{{ attributes.class }} +{% set classes %} +field field--name-{{ field_name }} field--type-{{ field_type }} field--label-{{ field_label }}{{ attributes.class }} {% endset %} {% if multiple and not label_hidden %} {# -