Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
18 Apr 2015 at 22:51 UTC
Updated:
28 Jun 2015 at 20:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
star-szrPatch split from parent issue. I wasn't able to find anything additional by grepping.
Comment #2
lewisnymanI grepped in the core directory and couldn't find any other changes. I couldn't figure out where to test this change though.
I think that we should remove the non-functional classes from the tests, what do you think?
Comment #3
star-szrAdding suggested commit message.
Comment #4
lewisnymanWe had this discussion in other issues, we shouldn't be updating the tests here and instead improve the tests in followup issues.
Comment #5
alexpottShouldn't we by having both form-wrapper and js-form-wrapper? Like we did in core/lib/Drupal/Core/Render/Element/Details.php?
Comment #6
star-szrWe don't add those classes to core markup, just Classy. When we don't have a choice (added via modules/JS), we add both.
Edited to use the right word for modules :)
Comment #7
lewisnymanThat makes sense for now, hopefully we can move where we are adding the classes in the future.
Comment #8
alexpottNeeds a reroll.
Comment #9
alexpottI'm not convinced by #6. What about
in locale.admin.css?
Comment #10
star-szrThanks, rerolled. I will try to catch @alexpott in IRC to discuss further :)
Comment #11
star-szrThere are quite a few things in core modules using this form-wrapper class so it does seem a bit rash to rip it out.
We can create a followup to discuss the CSS/form-wrapper class further, probably most of the styling could be moved to Classy at which point we could also remove the form-wrapper classes from the core templates. I don't have time right now to create the followup but here's a new patch.
As @alexpott pointed out, the most important thing is getting the js- classes in, not getting the non-js- classes out.
Comment #13
davidhernandezThis looks good to me. Covers all cases where I can find form-wrapper. I sent it for retesting to make sure it is still ok.
Comment #14
davidhernandezComment #15
alexpottCommitted 9a7a4c2 and pushed to 8.0.x. Thanks!
Thanks for adding the beta evaluation to the issue summary.