Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291620

Add in js- prefixed classes to forms for separation of JS & CSS functionality

$
0
0

Problem/Motivation

add css classes thats only used by javascript. Classes will use the original name and be prefixed with .js- and be added to the existing class for seperating design and functionality.

<div class ="foo"> -> <div class ="js-foo foo">

Proposed resolution

classes added & used by js

.js-form-wrapper
.js-form-required
.js-field-parent
.js-form-item
.js-form-item,
.js-form-submit,
.js-form-wrapper

Remaining tasks

User interface changes

API changes

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue categoryTask because nothing is broken
Issue priorityNot critical because nothing is broken
Unfrozen changesUnfrozen because it mostly just affects templates and JS which is not frozen
Prioritized changesThe main goal of this issue is to improve themer experience.
DisruptionShouldn't be too disruptive as it is mostly affecting CSS classes that are added to markup.

Viewing all articles
Browse latest Browse all 291620

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>