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
2fdeb8fcf8
commit
f04c96070b
|
@ -171,7 +171,7 @@ class EntityReferenceFormatterTest extends EntityUnitTestBase {
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
$expected_rendered_body_field = '<div class="field field-entity-test--body field-name-body field-type-text field-label-above">
|
$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: </div>
|
<div class="field-label">Body</div>
|
||||||
<div class="field-items">
|
<div class="field-items">
|
||||||
<div class="field-item"><p>Hello, world!</p></div>
|
<div class="field-item"><p>Hello, world!</p></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -596,18 +596,19 @@ table tr.error {
|
||||||
.field-label-inline .field-label,
|
.field-label-inline .field-label,
|
||||||
.field-label-inline .field-items {
|
.field-label-inline .field-items {
|
||||||
float:left; /*LTR*/
|
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-label,
|
||||||
[dir="rtl"] .field-label-inline .field-items {
|
[dir="rtl"] .field-label-inline .field-items {
|
||||||
float: right;
|
float: right;
|
||||||
padding-left: 0.5em;
|
margin-left: 0.5em;
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
.field-label-inline .field-label::after {
|
||||||
|
content: ':';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Form display */
|
/* Form display */
|
||||||
form .field-edit-link {
|
|
||||||
margin: 0 0.3em;
|
|
||||||
}
|
|
||||||
form .field-multiple-table {
|
form .field-multiple-table {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#}
|
#}
|
||||||
<div{{ attributes }}>
|
<div{{ attributes }}>
|
||||||
{% if not label_hidden %}
|
{% if not label_hidden %}
|
||||||
<div{{ title_attributes.addClass('field-label') }}>{{ label }}: </div>
|
<div{{ title_attributes.addClass('field-label') }}>{{ label }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div{{ content_attributes.addClass('field-items') }}>
|
<div{{ content_attributes.addClass('field-items') }}>
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#}
|
#}
|
||||||
<div{{ attributes.addClass('clearfix') }}>
|
<div{{ attributes.addClass('clearfix') }}>
|
||||||
{% if not label_hidden %}
|
{% if not label_hidden %}
|
||||||
<h3{{ title_attributes }}>{{ label }}: </h3>
|
<h3{{ title_attributes }}>{{ label }}</h3>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<ul{{ content_attributes.addClass('links', 'field-items') }}>
|
<ul{{ content_attributes.addClass('links', 'field-items') }}>
|
||||||
{% for item in items %}
|
{% for item in items %}
|
||||||
|
|
Loading…
Reference in New Issue