Bricks Version: 1.4.02 Browser: Chrome 90 OS: macOS / Windows / Linux / etc. URL: (a link to a page that illustrates the issue would be really helpful)
Hey guys,
I noticed earlier that nothing was attached to the class when I tried to add filters to a class. I manually added “filter: brightness(0)opacity(1)etc”… via CSS and it worked just fine, so the class was correctly added to the elements. Just filters won’t work
Hey, Thanks for the quick reply!
Currently, if you add a class to an element and add styles to the class, the class gets attached to the element so it looks like this: .testClass.brx-container { … }
However, if you want to add the class to another element, it may not give you the desired result because it only affects certain parts of the element, depending on the element (please see Thomas statement).
sorry, I double-checked my settings and I figured out I mixed a couple of things. I was able to apply the filter on a container’s class element, BUT I’m still not able to apply filters to class when it’s attached to the code element’s.
Currently, we only allow the filters to be applied to the container or images - not to each element (which makes little sense in most cases anyway). However, this can of course be limiting, so in the future, we will apply the filter to the root of the element in general.
As a temporary solution, you can put your code element into a container, and apply the filter to the container.