Skip to content

Help text template needs minor changes #80

@SFr682k

Description

@SFr682k

Template layout/help_text.html:

{% if field.help_text %}
    {% if help_text_inline %}
        <span id="hint_{{ field.auto_id }}" class="text-muted">{{ field.help_text }}</span>
    {% else %}
        <small id="hint_{{ field.auto_id }}" class="form-text text-muted">{{ field.help_text }}</small>
    {% endif %}
{% endif %}

With Bootstrap 5, .form-text no longer sets the display property; therefore both help labels should use .form-text, but different tags (span for inline, div for block) or .d-* modifier classes.

Furthermore, .form-text applies $form-text-color, which defaults to $text-muted; therefore, .text-muted may be omitted.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions