The developers of this theme recommend you to use the SilverStripe ZURB Foundation Forms Module. This will add all the classes needed by the theme styling for all the form elements automatically.
Can I add a class to all form buttons in the Silverstripe framework?
-
16-06-2023 - |
Question
We're wanting to do some fast prototyping using Zurb Foundation on Silverstripe. This is the Silverstripe theme for Foundation: http://silverstripe-foundation.com/kitchen-sink/
The issue is the class "button" has to be applied to form input fields for them to inherit the Foundation styling. Otherwise the browser default is used, which looks bad. Other form fields inherit the correct style.
There's a method addExtraClass in FormField: http://api.silverstripe.org/3.1/source-class-FormField.html#300-314
How would I apply this to all form buttons generated by the framework?
La solution
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow