[#12416] CSS class for Radio Button Group not being applied to input tag
History
Comments
Date: 2021-02-17 08:03
Posted By: Rolf (rolf1)
Thanks for your report and fix suggestion, we have looked into it.
The current situation works though but in a different way… The provided class is
added to a wrapper div and *not* to the input field itself. Changing this would
probably break the styling at other sites.
It is as design as per the original developer intentions, and we are refactoring
the field PHP classes for future versions to not only make FormBuilder more
versatile, but also keep backwards compatibility as much as possible.
So we won't fix it at the moment as there are ways to work around that in the
template and stylesheet without having to hack the PHP code, in example:
.provided_class input[type="checkbox”] { ... }
See also https://cmscanbesimple.org/blog/styling-forms