Problem/Motivation

Currently defaults generate custom element names like field--image or field--comment. This is something which plays very bad with Vue's kebap casing to CamelCase conversion, or better said, it does not work with it.

Steps to reproduce

Proposed resolution

Double dashes should be simply avoided, a simple dash is enough.
The default custom element processors should be adjusted accordingly. This will imply a BC change for everyone relying on the default custom element processors.

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

fago created an issue. See original summary.

fago’s picture

Status: Active » Needs review

  • fago committed a4d93c6 on 8.x-2.x
    Issue #3190605 by fago: Do not use double dashes for default custom...
fago’s picture

Status: Needs review » Fixed

Implemented. The default article content type of standard profile does now have field-comment and field-image instead of field--comment and field--image.

Status: Fixed » Closed (fixed)

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