Starterkit form-element.html.twig template looks currently like this:

{% include "radix:form-element" %}

(https://git.drupalcode.org/project/radix/-/blob/6.0.x/src/kits/radix_sta...)

That means no variables passed to the template make it to the component itself, which makes it impossible (for example) to display filed labels after the field, which is required for BS5 floating labels (https://getbootstrap.com/docs/5.3/forms/floating-labels/#example).

Issue fork radix-3442730

Command icon Show commands

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

milos.kroulik created an issue. See original summary.

milos.kroulik’s picture

Status: Active » Needs review

doxigo made their first commit to this issue’s fork.

doxigo’s picture

Status: Needs review » Fixed

Thanks Milos, merged but note that you can omit the value if the key/value are equal, so I just adjusted it a bit to:
{% include "radix:form-element" with {
errors,
prefix,
suffix,
type,
name,
label,
label_display,
description_display,
} %}

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.