Prefix is shown before description

Created on 8 July 2024, 10 months ago

Problem/Motivation

When creating a number field and filling in a prefix and description where the 'Description display' is set to 'Before', the prefix will be shown before the description instead of the field.

Steps to reproduce

  1. Create a 'Number' element.
  2. Fill in the description.
  3. Fill in the prefix.
  4. Set 'Description display' to 'Before'.
  5. Save the element and view the form.

Proposed resolution

Show prefix in front of field instead of in front of the description when 'Description display' is set to 'Before'.

This can be done by swapping lines 71-73 with 74-78 in the following file:
https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/syste...

๐Ÿ› Bug report
Status

Active

Version

10.3 โœจ

Component
Formย  โ†’

Last updated about 7 hours ago

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands rroose

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024