Generated with the help of an LLM.

Problem/Motivation

In the component form, an attributes prop is a one-line field unless the theme mapping lists it as multiline.
One src and alt already run past a line.
A multiline field is sized to its content, so it starts narrow and widens while typing.

Nothing tells the site builder that a class typed there bypasses the theme's styles and is lost on a theme switch.

Proposed resolution

Every prop of the attributes type is multiline in any mapping, and a multiline field is full width, growing in height only.

The component's own attributes prop gets help after its description: use the component settings and Styles first, and "Styles attributes" for classes when UI Styles UI Patterns provides that source.

User interface changes

Attributes props show as a full-width textarea with an info button holding the help.

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

mogtofu33 created an issue. See original summary.

mogtofu33’s picture

Status: Needs work » Needs review

  • mogtofu33 committed b4f09298 on 1.3.x
    feat: #3642196 Edit attributes props in a full-width field, with help...
mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.