Closed (fixed)
Project:
radix
Version:
6.0.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jun 2026 at 07:35 UTC
Updated:
10 Jul 2026 at 07:55 UTC
Jump to comment: Most recent
When description_display is set to 'after' or 'invisible' it uses a small element, so the default margin-top on .form-text does not apply.
{% if description_display in ['after', 'invisible'] and description.content %}
<small{{description.attributes.addClass(description_classes)}}>
{{ description.content }}
</small>
{% endif %}
I suggest not using the small element at all. It doesn't affect the font size, which is controlled by the form-text class.
Perhaps "small" was used for layout purposes, especially since it's an inline element. In that case, we should set d-inline-box to make the margin-top work.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
thomas.frobieterComment #4
doxigo commentedThanks Thomas, I haven't tested this myself but I'll take your word for it, merged.