Closed (fixed)
Project:
Webform
Version:
7.x-4.0-alpha3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
26 Jul 2012 at 05:51 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
alex.skrypnykPatch attached.
Comment #2
alex.skrypnykPlease disregard patch above and use another patch attached to this comment.
Comment #3
quicksketchAny item that is a "property" (such as classes) needs to be prefixed with a "#" sign in Drupal's FAPI, otherwise the item will be considered a separate form element. This issue may also be of interest to you: #536236: Custom CSS classes for form components.
Comment #4
alex.skrypnykquicksketch, you are 100% right.
It slipped my mind that property needs to be '#' prefixed.
Sorry for the trouble.
New patch attached.
Comment #5
quicksketchThis has been fixed by the issue mentioned in #3. We borrowed the approach used by D8, which is to support any arbitrary attributes on the wrapper by using #wrapper_attributes:
It's not the same implementation, but it solves the same problem. See #536236: Custom CSS classes for form components.