This is a bug related to issue #43493: FAPI: Add name/type as CSS class for form elements.
If a form element name has a embedded space, then the resulting CSS class would be incorrect for the form element wrapper.
This can be seen on the permissions page when the book module is enabled, the "Create new books" permission's checkboxes are pushed to the right, out of the column (see attached image).
This is due to the class being "form-item form-item-checkbox 1-create new books-wrapper" instead of something like "form-item form-item-checkbox 1-create-new-books-wrapper"
The attached patch adds a space to dash conversion to the special character conversion list for the CSS class string.
| Comment | File | Size | Author |
|---|---|---|---|
| permissions_book_bad_css_class.png | 4.6 KB | asimmonds | |
| form-inc-space-to-dash.patch | 756 bytes | asimmonds |
Comments
Comment #1
tobiasbComment #2
dries commentedCommitted to CVS HEAD. Thanks!