This is a followup to #3301853: Create twig filters: |add_class and |set_attribute.
In that issue we wanted to add the |remove_class along with the other filters. However, we determined it does not work as expected when the template adds the CSS class (e.g. the field class).
As a front-end developer, I would expect that the |remove_class would remove those CSS classes, however it currently cannot.
We're not sure this is fixable (or even should be fixed). But if so, we can work on ithere.
Comments