Form textfield size does not adjust with multiple allowed values

Created on 22 May 2024, 7 months ago

Problem/Motivation

When using textfield set to Unlimited (or more than one) values I cannot changed the field size in Manage Form Display. Changed from 60 to any size more or less does nothing to the field.

Steps to reproduce

Add a text field (any type) to any content and set the allowed values to anything other than one (1). Go to Manage Form Display and change the field size to any number and you'll see that it has no affect on the field.

Proposed resolution

I may have a solution, but I'm not completely convinced this is a true bug or something causing it on my end, and I don't know if the solution is sound. However, when I remove this CSS from core/theme/Claro/css/components/tables.css everything works fine and doesn't seem to have a negative impact. It doesn't even affect Paragraphs which is table based with these same CSS elements below.

Line: 214
Delete: td > .form-item > .form-element,

<del>td > .form-item > .form-element,</del>
td > .ajax-new-content > .form-item > .form-element,
td > .form-item > .claro-autocomplete,
td > .form-item > .claro-autocomplete > .form-element,
td > .ajax-new-content > .form-item > .claro-autocomplete,
td > .ajax-new-content > .form-item > .claro-autocomplete > .form-element {
  width: 100%;
}

The solution I'm temporarily using is my own custom CSS below. With this the fields can be resized normally.

td > .form-item > .form-element {
  width: auto;
}

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

None

🐛 Bug report
Status

Active

Version

10.2

Component
Claro 

Last updated about 5 hours ago

Created by

🇺🇸United States System Lord

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

Comments & Activities

  • Issue created by @System Lord
  • 🇳🇿New Zealand quietone

    Fixes are made on on 11.x (our main development branch) first, and are then back ported as needed according to our policies. Also, 10.2 is in security mode now.

  • 🇮🇳India ahsannazir

    @SystemLord Can you please add Screenshot or screen recording to help identify the issue

  • 🇮🇳India prashant.c Dharamshala

    I don't believe this is a problem. When multi-valued text fields are allowed, they come with a "Remove" button and a draggable icon. For a better editorial experience, these elements should be displayed in a single row.

  • 🇮🇳India nayana_mvr

    Actually the temporary solution which is mentioned in the ticket has been implemented as part of another ticket which is in RTBC now. Attaching that ticket here. Maybe that will solve both the issues.

Production build 0.71.5 2024