Commit f04c9607 authored by alexpott's avatar alexpott

Issue #1623574 by droplet, cilefen, cesarmiquel, patrickfgoddard, sun,...

Issue #1623574 by droplet, cilefen, cesarmiquel, patrickfgoddard, sun, zaporylie, er.pushpinderrana, stevecowie, mbroere: Fixed Remove trailing space from form element labels and field labels (HTML nbsp).
parent 2fdeb8fc
......@@ -171,7 +171,7 @@ public function testEntityFormatter() {
</div>
';
$expected_rendered_body_field = '<div class="field field-entity-test--body field-name-body field-type-text field-label-above">
<div class="field-label">Body:&nbsp;</div>
<div class="field-label">Body</div>
<div class="field-items">
<div class="field-item"><p>Hello, world!</p></div>
</div>
......
......@@ -596,18 +596,19 @@ table tr.error {
.field-label-inline .field-label,
.field-label-inline .field-items {
float:left; /*LTR*/
padding-right: 0.5em;
margin-right: 0.5em; /*LTR*/
}
[dir="rtl"] .field-label-inline .field-label,
[dir="rtl"] .field-label-inline .field-items {
float: right;
padding-left: 0.5em;
margin-left: 0.5em;
margin-right: 0;
}
.field-label-inline .field-label::after {
content: ':';
}
/* Form display */
form .field-edit-link {
margin: 0 0.3em;
}
form .field-multiple-table {
margin: 0;
}
......
......@@ -32,7 +32,7 @@
#}
<div{{ attributes }}>
{% if not label_hidden %}
<div{{ title_attributes.addClass('field-label') }}>{{ label }}:&nbsp;</div>
<div{{ title_attributes.addClass('field-label') }}>{{ label }}</div>
{% endif %}
<div{{ content_attributes.addClass('field-items') }}>
{% for item in items %}
......
......@@ -19,7 +19,7 @@
#}
<div{{ attributes.addClass('clearfix') }}>
{% if not label_hidden %}
<h3{{ title_attributes }}>{{ label }}: </h3>
<h3{{ title_attributes }}>{{ label }}</h3>
{% endif %}
<ul{{ content_attributes.addClass('links', 'field-items') }}>
{% for item in items %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment