Custom classes settings screenshot

This project is not covered by Drupal’s security advisory policy.

Adds or removes classes from form elements based on the URL or route name or Form ID. For example if a module doesn't define a unique class for a button, you can add one with this module. You don't have to create a form alter hook for it.

Also, be careful when removing classes as this can result in AJAX errors on forms where a certain button is missing a required class. (For example if you remove the success class from the commerce Add to cart button, it could result to LogicException: The database connection is not serializable errors)

Project information

Releases