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

Prefix form-item classes with js-

$
0
0

Task

Prefix form-item classes with js- to separate classes needed for JavaScript functionality from those used for styling and make it clear which classes can safely be removed without breaking JavaScript functionality.

Remaining tasks

  • Patch
  • Patch review
  • Manual testing

Steps to test

  1. Navigate to admin/structure/types/manage/article/fields/add-field
  2. Test that the machine name functionality still works

Beta phase evaluation

Reference: https://www.drupal.org/core/beta-changes
Issue categoryBug report, there is currently a class missing from the non-Classy text-format-wrapper.html.twig.
Unfrozen changesUnfrozen because it mostly just affects templates and JS which are not frozen.
Prioritized changesThe main goal of this issue is to improve themer experience and arguably it reduces fragility where JavaScript and markup intersect.
DisruptionShouldn't be too disruptive as it is mostly affecting CSS classes that are added to markup. Themes extending Classy will only have classes added. Themes not extending Classy will have classes removed but they can be added back via template overrides.

User interface changes

None for themes extending Classy. Possible visual changes for other themes.

API changes

n/a


Viewing all articles
Browse latest Browse all 297351

Trending Articles



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