Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
theme system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Sep 2014 at 07:47 UTC
Updated:
24 Sep 2014 at 18:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sutharsan commentedThis patch adds an if-condition to
addClass()to prevent adding a single empty class.Comment #3
sutharsan commentedLast test failed on purpose. Back to needs review.
Comment #4
star-szrLooks good, makes sense, and adds test coverage. RTBC, thanks @Sutharsan!
Comment #5
star-szrComment #6
alexpottCommitted 4697eb9 and pushed to 8.0.x. Thanks!
Comment #8
star-szrFollow-up posted because unfortunately this didn't really fix the usage case in #2329759: Move container classes from preprocess to templates.
#2336355: Refactor Attribute rendering so that class="" is not printed