Implement js- prefix for linkit textfields to separate JavaScript behavior from styling

Created on 16 October 2019, almost 5 years ago
Updated 16 May 2024, 4 months ago

Problem/Motivation

We expose many class attributes in templates and other layers (for example preprocess), but it's never clear which classes are needed for JavaScript functionality, leaving themers in the dark if they want to slim down their markup and not break JS.

This is also being fixed in Drupal Core in #2431671: [meta] Add in js- prefixed classes for separation of JS & CSS functionality β†’

Proposed resolution

Implement js- prefix for autocomplete to separate JavaScript behavior from styling as outlined in #2431671: [meta] Add in js- prefixed classes for separation of JS & CSS functionality β†’

Remaining tasks

  1. Write a patch
  2. Review
  3. Commit

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

Linkit autocomplete textfields now implement a js-form-linkit-autocomplete class for to separate JavaScript behavior from styling.

πŸ“Œ Task
Status

Needs review

Version

7.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands idebr

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024