Skip to content
Snippets Groups Projects

Issue #3459838: Prefix is shown before description

Open Issue #3459838: Prefix is shown before description
1 unresolved thread
Open Sourav Paul requested to merge issue/drupal-3459838:3459838-prefix into 11.x
1 unresolved thread

Closes #3459838

Merge request reports

Members who can merge are allowed to add commits.
Code Quality is loading
Test summary results are being parsed
Metrics reports are loading
Ready to merge by members who can write to the target branch.
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
68 68 {% if label_display in ['before', 'invisible'] %}
69 69 {{ label }}
70 70 {% endif %}
71 {% if prefix is not empty %}
    • web/core/profiles/demo_umami/themes/umami/templates/classy/form/form-element.html.twig
    • web/core/themes/stable9/templates/form/form-element.html.twig
    • web/core/themes/starterkit_theme/templates/form/form-element.html.twig

    All these core templates follow the same structure for prefix

      {% if prefix is not empty %}
        <span class="field-prefix">{{ prefix }}</span>
      {% endif %}
      {% if description_display == 'before' and description.content %}
        <div{{ description.attributes }}>
          {{ description.content }}
        </div>
      {% endif %}

    Shouldn't we update all of them? Or is this something that should be handled by the 'webform' module itself?

    Edited by AKHIL BABU
  • Let it decide core maintainers.

  • Please register or sign in to reply
  • Sourav Paul added 1 commit

    added 1 commit

    Compare with previous version

  • Sahana N added 1 commit

    added 1 commit

    Compare with previous version

  • Sri Harsha added 1 commit

    added 1 commit

    Compare with previous version

  • Sri Harsha added 1 commit

    added 1 commit

    Compare with previous version

  • David Cameron added 1235 commits

    added 1235 commits

    Compare with previous version

  • David Cameron added 150 commits

    added 150 commits

    Compare with previous version

  • David Cameron added 2 commits

    added 2 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading